@pulumiverse/grafana
Version:
A Pulumi package for creating and managing grafana.
86 lines (85 loc) • 2.88 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/manage-dashboards/)
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder/)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@pulumi/grafana";
* import * as grafana from "@pulumiverse/grafana";
*
* const testA = new grafana.oss.Folder("test_a", {
* title: "test-folder-a",
* uid: "test-ds-folder-uid-a",
* });
* const testB = new grafana.oss.Folder("test_b", {
* title: "test-folder-b",
* uid: "test-ds-folder-uid-b",
* });
* const test = grafana.oss.getFolders({});
* ```
*/
/** @deprecated grafana.index/getfolders.getFolders has been deprecated in favor of grafana.oss/getfolders.getFolders */
export declare function getFolders(args?: GetFoldersArgs, opts?: pulumi.InvokeOptions): Promise<GetFoldersResult>;
/**
* A collection of arguments for invoking getFolders.
*/
export interface GetFoldersArgs {
/**
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
*/
orgId?: string;
}
/**
* A collection of values returned by getFolders.
*/
export interface GetFoldersResult {
/**
* The Grafana instance's folders.
*/
readonly folders: outputs.GetFoldersFolder[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
*/
readonly orgId?: string;
}
/**
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/manage-dashboards/)
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder/)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@pulumi/grafana";
* import * as grafana from "@pulumiverse/grafana";
*
* const testA = new grafana.oss.Folder("test_a", {
* title: "test-folder-a",
* uid: "test-ds-folder-uid-a",
* });
* const testB = new grafana.oss.Folder("test_b", {
* title: "test-folder-b",
* uid: "test-ds-folder-uid-b",
* });
* const test = grafana.oss.getFolders({});
* ```
*/
/** @deprecated grafana.index/getfolders.getFolders has been deprecated in favor of grafana.oss/getfolders.getFolders */
export declare function getFoldersOutput(args?: GetFoldersOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetFoldersResult>;
/**
* A collection of arguments for invoking getFolders.
*/
export interface GetFoldersOutputArgs {
/**
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
*/
orgId?: pulumi.Input<string>;
}