@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
60 lines • 1.86 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.getGroupOutput = exports.getGroup = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get the ID of an OpenStack group.
*
* > **Note:** You _must_ have admin privileges in your OpenStack cloud to use
* this resource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const admins = openstack.identity.getGroup({
* name: "admins",
* });
* ```
*/
function getGroup(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("openstack:identity/getGroup:getGroup", {
"domainId": args.domainId,
"name": args.name,
"region": args.region,
}, opts);
}
exports.getGroup = getGroup;
/**
* Use this data source to get the ID of an OpenStack group.
*
* > **Note:** You _must_ have admin privileges in your OpenStack cloud to use
* this resource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const admins = openstack.identity.getGroup({
* name: "admins",
* });
* ```
*/
function getGroupOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("openstack:identity/getGroup:getGroup", {
"domainId": args.domainId,
"name": args.name,
"region": args.region,
}, opts);
}
exports.getGroupOutput = getGroupOutput;
//# sourceMappingURL=getGroup.js.map