@lbrlabs/pulumi-grafana
Version:
A Pulumi package for creating and managing grafana.
36 lines • 1.8 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDashboardsOutput = exports.getDashboards = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* 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/)
*/
function getDashboards(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("grafana:index/getDashboards:getDashboards", {
"folderIds": args.folderIds,
"limit": args.limit,
"tags": args.tags,
}, opts);
}
exports.getDashboards = getDashboards;
/**
* 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/)
*/
function getDashboardsOutput(args, opts) {
return pulumi.output(args).apply((a) => getDashboards(a, opts));
}
exports.getDashboardsOutput = getDashboardsOutput;
//# sourceMappingURL=getDashboards.js.map