@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
54 lines • 1.75 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.getContainerOutput = exports.getContainer = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get the ID of an available Barbican container.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const example = openstack.keymanager.getContainer({
* name: "my_container",
* });
* ```
*/
function getContainer(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("openstack:keymanager/getContainer:getContainer", {
"name": args.name,
"region": args.region,
}, opts);
}
exports.getContainer = getContainer;
/**
* Use this data source to get the ID of an available Barbican container.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const example = openstack.keymanager.getContainer({
* name: "my_container",
* });
* ```
*/
function getContainerOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("openstack:keymanager/getContainer:getContainer", {
"name": args.name,
"region": args.region,
}, opts);
}
exports.getContainerOutput = getContainerOutput;
//# sourceMappingURL=getContainer.js.map