@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
64 lines • 2.02 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.getProjectOutput = exports.getProject = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get the ID of an OpenStack project.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const project1 = openstack.identity.getProject({
* name: "demo",
* });
* ```
*/
function getProject(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("openstack:identity/getProject:getProject", {
"domainId": args.domainId,
"enabled": args.enabled,
"isDomain": args.isDomain,
"name": args.name,
"parentId": args.parentId,
"projectId": args.projectId,
"region": args.region,
}, opts);
}
exports.getProject = getProject;
/**
* Use this data source to get the ID of an OpenStack project.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const project1 = openstack.identity.getProject({
* name: "demo",
* });
* ```
*/
function getProjectOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("openstack:identity/getProject:getProject", {
"domainId": args.domainId,
"enabled": args.enabled,
"isDomain": args.isDomain,
"name": args.name,
"parentId": args.parentId,
"projectId": args.projectId,
"region": args.region,
}, opts);
}
exports.getProjectOutput = getProjectOutput;
//# sourceMappingURL=getProject.js.map