UNPKG

@pulumi/openstack

Version:

A Pulumi package for creating and managing OpenStack cloud resources.

54 lines 1.64 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"); /** * Use this data source to get the ID of an OpenStack role. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const admin = openstack.identity.getRole({ * name: "admin", * }); * ``` */ function getRole(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("openstack:identity/getRole:getRole", { "domainId": args.domainId, "name": args.name, "region": args.region, }, opts); } exports.getRole = getRole; /** * Use this data source to get the ID of an OpenStack role. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const admin = openstack.identity.getRole({ * name: "admin", * }); * ``` */ function getRoleOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("openstack:identity/getRole:getRole", { "domainId": args.domainId, "name": args.name, "region": args.region, }, opts); } exports.getRoleOutput = getRoleOutput; //# sourceMappingURL=getRole.js.map