@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
62 lines • 2.03 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.getSnapshotV3Output = exports.getSnapshotV3 = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get information about an existing snapshot.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const snapshot1 = openstack.blockstorage.getSnapshotV3({
* name: "snapshot_1",
* mostRecent: true,
* });
* ```
*/
function getSnapshotV3(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("openstack:blockstorage/getSnapshotV3:getSnapshotV3", {
"mostRecent": args.mostRecent,
"name": args.name,
"region": args.region,
"status": args.status,
"volumeId": args.volumeId,
}, opts);
}
exports.getSnapshotV3 = getSnapshotV3;
/**
* Use this data source to get information about an existing snapshot.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const snapshot1 = openstack.blockstorage.getSnapshotV3({
* name: "snapshot_1",
* mostRecent: true,
* });
* ```
*/
function getSnapshotV3Output(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("openstack:blockstorage/getSnapshotV3:getSnapshotV3", {
"mostRecent": args.mostRecent,
"name": args.name,
"region": args.region,
"status": args.status,
"volumeId": args.volumeId,
}, opts);
}
exports.getSnapshotV3Output = getSnapshotV3Output;
//# sourceMappingURL=getSnapshotV3.js.map