UNPKG

@ediri/vultr

Version:

A Pulumi package for creating and managing Vultr cloud resources.

62 lines 1.8 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.getDatabaseOutput = exports.getDatabase = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Get information about a Vultr database. * * ## Example Usage * * Get the information for a database by `label`: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vultr from "@ediri/vultr"; * * const myDatabase = vultr.getDatabase({ * filters: [{ * name: "label", * values: ["my-database-label"], * }], * }); * ``` */ function getDatabase(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vultr:index/getDatabase:getDatabase", { "filters": args.filters, }, opts); } exports.getDatabase = getDatabase; /** * Get information about a Vultr database. * * ## Example Usage * * Get the information for a database by `label`: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vultr from "@ediri/vultr"; * * const myDatabase = vultr.getDatabase({ * filters: [{ * name: "label", * values: ["my-database-label"], * }], * }); * ``` */ function getDatabaseOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("vultr:index/getDatabase:getDatabase", { "filters": args.filters, }, opts); } exports.getDatabaseOutput = getDatabaseOutput; //# sourceMappingURL=getDatabase.js.map