@pulumiverse/grafana
Version:
A Pulumi package for creating and managing grafana.
66 lines • 2.33 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFoldersOutput = exports.getFolders = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/manage-dashboards/)
* * [HTTP API](https://grafana.com/docs/grafana/latest/developer-resources/api-reference/http-api/folder/)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* 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({});
* ```
*/
function getFolders(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("grafana:oss/getFolders:getFolders", {
"orgId": args.orgId,
}, opts);
}
exports.getFolders = getFolders;
/**
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/manage-dashboards/)
* * [HTTP API](https://grafana.com/docs/grafana/latest/developer-resources/api-reference/http-api/folder/)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* 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({});
* ```
*/
function getFoldersOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("grafana:oss/getFolders:getFolders", {
"orgId": args.orgId,
}, opts);
}
exports.getFoldersOutput = getFoldersOutput;
//# sourceMappingURL=getFolders.js.map