@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
74 lines • 2.49 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.getProjectIdsV3Output = exports.getProjectIdsV3 = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get a list of OpenStack Project IDs matching the
* specified criteria.
*
* > **Note:** You _must_ have domain admin or cloud admin privileges in your OpenStack cloud to use
* this datasource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const projects = openstack.identity.getProjectIdsV3({
* nameRegex: "^prod.*",
* });
* ```
*/
function getProjectIdsV3(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("openstack:identity/getProjectIdsV3:getProjectIdsV3", {
"domainId": args.domainId,
"enabled": args.enabled,
"isDomain": args.isDomain,
"name": args.name,
"nameRegex": args.nameRegex,
"parentId": args.parentId,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getProjectIdsV3 = getProjectIdsV3;
/**
* Use this data source to get a list of OpenStack Project IDs matching the
* specified criteria.
*
* > **Note:** You _must_ have domain admin or cloud admin privileges in your OpenStack cloud to use
* this datasource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const projects = openstack.identity.getProjectIdsV3({
* nameRegex: "^prod.*",
* });
* ```
*/
function getProjectIdsV3Output(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("openstack:identity/getProjectIdsV3:getProjectIdsV3", {
"domainId": args.domainId,
"enabled": args.enabled,
"isDomain": args.isDomain,
"name": args.name,
"nameRegex": args.nameRegex,
"parentId": args.parentId,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getProjectIdsV3Output = getProjectIdsV3Output;
//# sourceMappingURL=getProjectIdsV3.js.map