@pulumi/vsphere
Version:
A Pulumi package for creating vsphere resources
58 lines • 1.95 kB
JavaScript
;
// *** 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");
/**
* The `vsphere.Role` data source can be used to discover the `id` and privileges
* associated with a role given its name or display label.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vsphere from "@pulumi/vsphere";
*
* const terraformRole = vsphere.getRole({
* label: "Terraform to vSphere Integration Role",
* });
* ```
*/
function getRole(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("vsphere:index/getRole:getRole", {
"description": args.description,
"label": args.label,
"name": args.name,
"rolePrivileges": args.rolePrivileges,
}, opts);
}
exports.getRole = getRole;
/**
* The `vsphere.Role` data source can be used to discover the `id` and privileges
* associated with a role given its name or display label.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vsphere from "@pulumi/vsphere";
*
* const terraformRole = vsphere.getRole({
* label: "Terraform to vSphere Integration Role",
* });
* ```
*/
function getRoleOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("vsphere:index/getRole:getRole", {
"description": args.description,
"label": args.label,
"name": args.name,
"rolePrivileges": args.rolePrivileges,
}, opts);
}
exports.getRoleOutput = getRoleOutput;
//# sourceMappingURL=getRole.js.map