@pulumiverse/grafana
Version:
A Pulumi package for creating and managing grafana.
89 lines (88 loc) • 4.06 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Datasource for retrieving all dashboards. Specify list of folder IDs to search in for dashboards.
*
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/)
* * [Folder/Dashboard Search HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder_dashboard_search/)
* * [Dashboard HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/)
*/
/** @deprecated grafana.index/getdashboards.getDashboards has been deprecated in favor of grafana.oss/getdashboards.getDashboards */
export declare function getDashboards(args?: GetDashboardsArgs, opts?: pulumi.InvokeOptions): Promise<GetDashboardsResult>;
/**
* A collection of arguments for invoking getDashboards.
*/
export interface GetDashboardsArgs {
/**
* UIDs of Grafana folders containing dashboards. Specify to filter for dashboards by folder (eg. `["General"]` for General folder), or leave blank to get all dashboards in all folders.
*/
folderUids?: string[];
/**
* Maximum number of dashboard search results to return. Defaults to `5000`.
*/
limit?: number;
/**
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
*/
orgId?: string;
/**
* List of string Grafana dashboard tags to search for, eg. `["prod"]`. Used only as search input, i.e., attribute value will remain unchanged.
*/
tags?: string[];
}
/**
* A collection of values returned by getDashboards.
*/
export interface GetDashboardsResult {
readonly dashboards: outputs.GetDashboardsDashboard[];
/**
* UIDs of Grafana folders containing dashboards. Specify to filter for dashboards by folder (eg. `["General"]` for General folder), or leave blank to get all dashboards in all folders.
*/
readonly folderUids?: string[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Maximum number of dashboard search results to return. Defaults to `5000`.
*/
readonly limit?: number;
/**
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
*/
readonly orgId?: string;
/**
* List of string Grafana dashboard tags to search for, eg. `["prod"]`. Used only as search input, i.e., attribute value will remain unchanged.
*/
readonly tags?: string[];
}
/**
* Datasource for retrieving all dashboards. Specify list of folder IDs to search in for dashboards.
*
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/)
* * [Folder/Dashboard Search HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder_dashboard_search/)
* * [Dashboard HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/)
*/
/** @deprecated grafana.index/getdashboards.getDashboards has been deprecated in favor of grafana.oss/getdashboards.getDashboards */
export declare function getDashboardsOutput(args?: GetDashboardsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDashboardsResult>;
/**
* A collection of arguments for invoking getDashboards.
*/
export interface GetDashboardsOutputArgs {
/**
* UIDs of Grafana folders containing dashboards. Specify to filter for dashboards by folder (eg. `["General"]` for General folder), or leave blank to get all dashboards in all folders.
*/
folderUids?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Maximum number of dashboard search results to return. Defaults to `5000`.
*/
limit?: pulumi.Input<number>;
/**
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
*/
orgId?: pulumi.Input<string>;
/**
* List of string Grafana dashboard tags to search for, eg. `["prod"]`. Used only as search input, i.e., attribute value will remain unchanged.
*/
tags?: pulumi.Input<pulumi.Input<string>[]>;
}