UNPKG

@pulumiverse/grafana

Version:

A Pulumi package for creating and managing grafana.

70 lines 3.16 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.getServiceAccountOutput = exports.getServiceAccount = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/service-accounts/) * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/serviceaccount/#service-account-api) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumi/grafana"; * import * as grafana from "@pulumiverse/grafana"; * * const adminServiceAccount = new grafana.oss.ServiceAccount("admin", { * name: "admin sa", * role: "Admin", * isDisabled: false, * }); * const admin = grafana.oss.getServiceAccountOutput({ * name: adminServiceAccount.name, * }); * ``` */ /** @deprecated grafana.index/getserviceaccount.getServiceAccount has been deprecated in favor of grafana.oss/getserviceaccount.getServiceAccount */ function getServiceAccount(args, opts) { pulumi.log.warn("getServiceAccount is deprecated: grafana.index/getserviceaccount.getServiceAccount has been deprecated in favor of grafana.oss/getserviceaccount.getServiceAccount"); opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("grafana:index/getServiceAccount:getServiceAccount", { "name": args.name, "orgId": args.orgId, }, opts); } exports.getServiceAccount = getServiceAccount; /** * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/service-accounts/) * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/serviceaccount/#service-account-api) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumi/grafana"; * import * as grafana from "@pulumiverse/grafana"; * * const adminServiceAccount = new grafana.oss.ServiceAccount("admin", { * name: "admin sa", * role: "Admin", * isDisabled: false, * }); * const admin = grafana.oss.getServiceAccountOutput({ * name: adminServiceAccount.name, * }); * ``` */ /** @deprecated grafana.index/getserviceaccount.getServiceAccount has been deprecated in favor of grafana.oss/getserviceaccount.getServiceAccount */ function getServiceAccountOutput(args, opts) { pulumi.log.warn("getServiceAccount is deprecated: grafana.index/getserviceaccount.getServiceAccount has been deprecated in favor of grafana.oss/getserviceaccount.getServiceAccount"); opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("grafana:index/getServiceAccount:getServiceAccount", { "name": args.name, "orgId": args.orgId, }, opts); } exports.getServiceAccountOutput = getServiceAccountOutput; //# sourceMappingURL=getServiceAccount.js.map