@ediri/vultr
Version:
A Pulumi package for creating and managing Vultr cloud resources.
62 lines • 1.96 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.getBlockStorageOutput = exports.getBlockStorage = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Get information about a Vultr block storage subscription.
*
* ## Example Usage
*
* Get the information for a block storage subscription by `label`:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vultr from "@ediri/vultr";
*
* const myBlockStorage = vultr.getBlockStorage({
* filters: [{
* name: "label",
* values: ["my-block-storage-label"],
* }],
* });
* ```
*/
function getBlockStorage(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("vultr:index/getBlockStorage:getBlockStorage", {
"filters": args.filters,
}, opts);
}
exports.getBlockStorage = getBlockStorage;
/**
* Get information about a Vultr block storage subscription.
*
* ## Example Usage
*
* Get the information for a block storage subscription by `label`:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vultr from "@ediri/vultr";
*
* const myBlockStorage = vultr.getBlockStorage({
* filters: [{
* name: "label",
* values: ["my-block-storage-label"],
* }],
* });
* ```
*/
function getBlockStorageOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("vultr:index/getBlockStorage:getBlockStorage", {
"filters": args.filters,
}, opts);
}
exports.getBlockStorageOutput = getBlockStorageOutput;
//# sourceMappingURL=getBlockStorage.js.map