UNPKG

@ediri/vultr

Version:

A Pulumi package for creating and managing Vultr cloud resources.

62 lines 1.81 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.getOsOutput = exports.getOs = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Get information about operating systems that can be launched when creating a Vultr VPS. * * ## Example Usage * * Get the information for an operating system by `name`: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vultr from "@ediri/vultr"; * * const centos = vultr.getOs({ * filters: [{ * name: "name", * values: ["CentOS 7 x64"], * }], * }); * ``` */ function getOs(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vultr:index/getOs:getOs", { "filters": args.filters, }, opts); } exports.getOs = getOs; /** * Get information about operating systems that can be launched when creating a Vultr VPS. * * ## Example Usage * * Get the information for an operating system by `name`: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vultr from "@ediri/vultr"; * * const centos = vultr.getOs({ * filters: [{ * name: "name", * values: ["CentOS 7 x64"], * }], * }); * ``` */ function getOsOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("vultr:index/getOs:getOs", { "filters": args.filters, }, opts); } exports.getOsOutput = getOsOutput; //# sourceMappingURL=getOs.js.map