@pulumi/hcloud
Version:
A Pulumi package for creating and managing hcloud cloud resources.
72 lines • 2.15 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getVolumeOutput = exports.getVolume = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const volume1 = hcloud.getVolume({
* id: 1234,
* });
* const volume2 = hcloud.getVolume({
* name: "my-volume",
* });
* const volume3 = hcloud.getVolume({
* withSelector: "key=value",
* });
* ```
*/
function getVolume(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("hcloud:index/getVolume:getVolume", {
"id": args.id,
"location": args.location,
"name": args.name,
"selector": args.selector,
"serverId": args.serverId,
"withSelector": args.withSelector,
"withStatuses": args.withStatuses,
}, opts);
}
exports.getVolume = getVolume;
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const volume1 = hcloud.getVolume({
* id: 1234,
* });
* const volume2 = hcloud.getVolume({
* name: "my-volume",
* });
* const volume3 = hcloud.getVolume({
* withSelector: "key=value",
* });
* ```
*/
function getVolumeOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("hcloud:index/getVolume:getVolume", {
"id": args.id,
"location": args.location,
"name": args.name,
"selector": args.selector,
"serverId": args.serverId,
"withSelector": args.withSelector,
"withStatuses": args.withStatuses,
}, opts);
}
exports.getVolumeOutput = getVolumeOutput;
//# sourceMappingURL=getVolume.js.map