UNPKG

@pulumi/openstack

Version:

A Pulumi package for creating and managing OpenStack cloud resources.

60 lines 1.99 kB
"use strict"; // *** 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.getSnapshotOutput = exports.getSnapshot = 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 snapshot. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const snapshot1 = openstack.sharedfilesystem.getSnapshot({ * name: "snapshot_1", * }); * ``` */ function getSnapshot(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("openstack:sharedfilesystem/getSnapshot:getSnapshot", { "description": args.description, "name": args.name, "region": args.region, "shareId": args.shareId, "status": args.status, }, opts); } exports.getSnapshot = getSnapshot; /** * Use this data source to get the ID of an available Shared File System snapshot. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const snapshot1 = openstack.sharedfilesystem.getSnapshot({ * name: "snapshot_1", * }); * ``` */ function getSnapshotOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("openstack:sharedfilesystem/getSnapshot:getSnapshot", { "description": args.description, "name": args.name, "region": args.region, "shareId": args.shareId, "status": args.status, }, opts); } exports.getSnapshotOutput = getSnapshotOutput; //# sourceMappingURL=getSnapshot.js.map