UNPKG

@pulumiverse/grafana

Version:

A Pulumi package for creating and managing grafana.

106 lines 3.75 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.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/developers/http_api/access_control/) * * ## 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.enterprise.Role("test", { * name: "test-role", * description: "test-role description", * uid: "test-ds-role-uid", * version: 1, * 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, * }); * ``` */ /** @deprecated grafana.index/getrole.getRole has been deprecated in favor of grafana.enterprise/getrole.getRole */ function getRole(args, opts) { pulumi.log.warn("getRole is deprecated: grafana.index/getrole.getRole has been deprecated in favor of grafana.enterprise/getrole.getRole"); opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("grafana:index/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/developers/http_api/access_control/) * * ## 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.enterprise.Role("test", { * name: "test-role", * description: "test-role description", * uid: "test-ds-role-uid", * version: 1, * 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, * }); * ``` */ /** @deprecated grafana.index/getrole.getRole has been deprecated in favor of grafana.enterprise/getrole.getRole */ function getRoleOutput(args, opts) { pulumi.log.warn("getRole is deprecated: grafana.index/getrole.getRole has been deprecated in favor of grafana.enterprise/getrole.getRole"); opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("grafana:index/getRole:getRole", { "name": args.name, }, opts); } exports.getRoleOutput = getRoleOutput; //# sourceMappingURL=getRole.js.map