@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
68 lines • 2.28 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.getShareOutput = exports.getShare = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get the ID of an available Shared File System share.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const share1 = openstack.sharedfilesystem.getShare({
* name: "share_1",
* });
* ```
*/
function getShare(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("openstack:sharedfilesystem/getShare:getShare", {
"description": args.description,
"exportLocationPath": args.exportLocationPath,
"isPublic": args.isPublic,
"metadata": args.metadata,
"name": args.name,
"region": args.region,
"shareNetworkId": args.shareNetworkId,
"snapshotId": args.snapshotId,
"status": args.status,
}, opts);
}
exports.getShare = getShare;
/**
* Use this data source to get the ID of an available Shared File System share.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const share1 = openstack.sharedfilesystem.getShare({
* name: "share_1",
* });
* ```
*/
function getShareOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("openstack:sharedfilesystem/getShare:getShare", {
"description": args.description,
"exportLocationPath": args.exportLocationPath,
"isPublic": args.isPublic,
"metadata": args.metadata,
"name": args.name,
"region": args.region,
"shareNetworkId": args.shareNetworkId,
"snapshotId": args.snapshotId,
"status": args.status,
}, opts);
}
exports.getShareOutput = getShareOutput;
//# sourceMappingURL=getShare.js.map