@lbrlabs/pulumi-grafana
Version:
A Pulumi package for creating and managing grafana.
83 lines (82 loc) • 2.24 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* * [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 "@lbrlabs/pulumi-grafana";
* import * as grafana from "@pulumi/grafana";
*
* const test = new grafana.Folder("test", {
* title: "test-folder",
* uid: "test-ds-folder-uid",
* });
* const fromTitle = grafana.getFolderOutput({
* title: test.title,
* });
* ```
*/
export declare function getFolder(args: GetFolderArgs, opts?: pulumi.InvokeOptions): Promise<GetFolderResult>;
/**
* A collection of arguments for invoking getFolder.
*/
export interface GetFolderArgs {
/**
* The name of the Grafana folder.
*/
title: string;
}
/**
* A collection of values returned by getFolder.
*/
export interface GetFolderResult {
/**
* The numerical ID of the Grafana folder.
*/
readonly id: number;
/**
* The name of the Grafana folder.
*/
readonly title: string;
/**
* The uid of the Grafana folder.
*/
readonly uid: string;
/**
* The full URL of the folder.
*/
readonly url: 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 "@lbrlabs/pulumi-grafana";
* import * as grafana from "@pulumi/grafana";
*
* const test = new grafana.Folder("test", {
* title: "test-folder",
* uid: "test-ds-folder-uid",
* });
* const fromTitle = grafana.getFolderOutput({
* title: test.title,
* });
* ```
*/
export declare function getFolderOutput(args: GetFolderOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetFolderResult>;
/**
* A collection of arguments for invoking getFolder.
*/
export interface GetFolderOutputArgs {
/**
* The name of the Grafana folder.
*/
title: pulumi.Input<string>;
}