UNPKG

@pulumiverse/grafana

Version:

A Pulumi package for creating and managing grafana.

98 lines 3.16 kB
"use strict"; // *** 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.getRoleOutput = exports.getRole = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * **Note:** This resource is available only with Grafana Enterprise 8.+. * * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/access-control/) * * [HTTP API](https://grafana.com/docs/grafana/latest/developer-resources/api-reference/http-api/api-legacy/access_control/) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumiverse/grafana"; * * const test = new grafana.enterprise.Role("test", { * name: "test-role", * description: "test-role description", * uid: "test-ds-role-uid", * global: true, * hidden: false, * permissions: [ * { * action: "org.users:add", * scope: "users:*", * }, * { * action: "org.users:write", * scope: "users:*", * }, * { * action: "org.users:read", * scope: "users:*", * }, * ], * }); * const fromName = grafana.enterprise.getRoleOutput({ * name: test.name, * }); * ``` */ function getRole(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("grafana:enterprise/getRole:getRole", { "name": args.name, }, opts); } exports.getRole = getRole; /** * **Note:** This resource is available only with Grafana Enterprise 8.+. * * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/access-control/) * * [HTTP API](https://grafana.com/docs/grafana/latest/developer-resources/api-reference/http-api/api-legacy/access_control/) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumiverse/grafana"; * * const test = new grafana.enterprise.Role("test", { * name: "test-role", * description: "test-role description", * uid: "test-ds-role-uid", * global: true, * hidden: false, * permissions: [ * { * action: "org.users:add", * scope: "users:*", * }, * { * action: "org.users:write", * scope: "users:*", * }, * { * action: "org.users:read", * scope: "users:*", * }, * ], * }); * const fromName = grafana.enterprise.getRoleOutput({ * name: test.name, * }); * ``` */ function getRoleOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("grafana:enterprise/getRole:getRole", { "name": args.name, }, opts); } exports.getRoleOutput = getRoleOutput; //# sourceMappingURL=getRole.js.map