UNPKG

@ediri/vultr

Version:

A Pulumi package for creating and managing Vultr cloud resources.

62 lines 2.06 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.getBackupOutput = exports.getBackup = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Get information about a Vultr backup. This data source provides a list of backups which contain the description, size, status, and the creation date for your Vultr backup. * * ## Example Usage * * Get the information for a backup by `description`: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vultr from "@ediri/vultr"; * * const myBackup = vultr.getBackup({ * filters: [{ * name: "description", * values: ["my-backup-description"], * }], * }); * ``` */ function getBackup(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vultr:index/getBackup:getBackup", { "filters": args.filters, }, opts); } exports.getBackup = getBackup; /** * Get information about a Vultr backup. This data source provides a list of backups which contain the description, size, status, and the creation date for your Vultr backup. * * ## Example Usage * * Get the information for a backup by `description`: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vultr from "@ediri/vultr"; * * const myBackup = vultr.getBackup({ * filters: [{ * name: "description", * values: ["my-backup-description"], * }], * }); * ``` */ function getBackupOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("vultr:index/getBackup:getBackup", { "filters": args.filters, }, opts); } exports.getBackupOutput = getBackupOutput; //# sourceMappingURL=getBackup.js.map