UNPKG

@lbrlabs/pulumi-grafana

Version:

A Pulumi package for creating and managing grafana.

67 lines 2.29 kB
"use strict"; // *** 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.getOrganizationOutput = exports.getOrganization = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/organization-management/) * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/org/) * * ## 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.Organization("test", { * adminUser: "admin", * createUsers: true, * viewers: [ * "viewer-01@example.com", * "viewer-02@example.com", * ], * }); * const fromName = grafana.getOrganizationOutput({ * name: test.name, * }); * ``` */ function getOrganization(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("grafana:index/getOrganization:getOrganization", { "name": args.name, }, opts); } exports.getOrganization = getOrganization; /** * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/organization-management/) * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/org/) * * ## 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.Organization("test", { * adminUser: "admin", * createUsers: true, * viewers: [ * "viewer-01@example.com", * "viewer-02@example.com", * ], * }); * const fromName = grafana.getOrganizationOutput({ * name: test.name, * }); * ``` */ function getOrganizationOutput(args, opts) { return pulumi.output(args).apply((a) => getOrganization(a, opts)); } exports.getOrganizationOutput = getOrganizationOutput; //# sourceMappingURL=getOrganization.js.map