@pulumiverse/grafana
Version:
A Pulumi package for creating and managing grafana.
117 lines (116 loc) • 3.78 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@pulumi/grafana";
* import * as grafana from "@pulumiverse/grafana";
*
* const test = new grafana.oss.LibraryPanel("test", {
* name: "panelname",
* modelJson: JSON.stringify({
* title: "test name",
* type: "text",
* version: 0,
* description: "test description",
* }),
* });
* const testFolder = new grafana.oss.Folder("test", {
* title: "Panel Folder",
* uid: "panelname-folder",
* });
* const folder = new grafana.oss.LibraryPanel("folder", {
* name: "panelname In Folder",
* folderUid: testFolder.uid,
* modelJson: JSON.stringify({
* gridPos: {
* x: 0,
* y: 0,
* h: 10,
* w: 10,
* },
* title: "panel",
* type: "text",
* version: 0,
* }),
* });
* const all = grafana.oss.getLibraryPanels({});
* ```
*/
/** @deprecated grafana.index/getlibrarypanels.getLibraryPanels has been deprecated in favor of grafana.oss/getlibrarypanels.getLibraryPanels */
export declare function getLibraryPanels(args?: GetLibraryPanelsArgs, opts?: pulumi.InvokeOptions): Promise<GetLibraryPanelsResult>;
/**
* A collection of arguments for invoking getLibraryPanels.
*/
export interface GetLibraryPanelsArgs {
/**
* The Organization ID. If not set, the default organization is used for basic authentication, or the one that owns your service account for token authentication.
*/
orgId?: string;
}
/**
* A collection of values returned by getLibraryPanels.
*/
export interface GetLibraryPanelsResult {
/**
* The ID of this resource.
*/
readonly id: string;
/**
* The Organization ID. If not set, the default organization is used for basic authentication, or the one that owns your service account for token authentication.
*/
readonly orgId: string;
readonly panels: outputs.GetLibraryPanelsPanel[];
}
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@pulumi/grafana";
* import * as grafana from "@pulumiverse/grafana";
*
* const test = new grafana.oss.LibraryPanel("test", {
* name: "panelname",
* modelJson: JSON.stringify({
* title: "test name",
* type: "text",
* version: 0,
* description: "test description",
* }),
* });
* const testFolder = new grafana.oss.Folder("test", {
* title: "Panel Folder",
* uid: "panelname-folder",
* });
* const folder = new grafana.oss.LibraryPanel("folder", {
* name: "panelname In Folder",
* folderUid: testFolder.uid,
* modelJson: JSON.stringify({
* gridPos: {
* x: 0,
* y: 0,
* h: 10,
* w: 10,
* },
* title: "panel",
* type: "text",
* version: 0,
* }),
* });
* const all = grafana.oss.getLibraryPanels({});
* ```
*/
/** @deprecated grafana.index/getlibrarypanels.getLibraryPanels has been deprecated in favor of grafana.oss/getlibrarypanels.getLibraryPanels */
export declare function getLibraryPanelsOutput(args?: GetLibraryPanelsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLibraryPanelsResult>;
/**
* A collection of arguments for invoking getLibraryPanels.
*/
export interface GetLibraryPanelsOutputArgs {
/**
* The Organization ID. If not set, the default organization is used for basic authentication, or the one that owns your service account for token authentication.
*/
orgId?: pulumi.Input<string>;
}