UNPKG

@ediri/vultr

Version:

A Pulumi package for creating and managing Vultr cloud resources.

62 lines 1.96 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.getSshKeyOutput = exports.getSshKey = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Get information about a Vultr SSH key. This data source provides the name, public SSH key, and the creation date for your Vultr SSH key. * * ## Example Usage * * Get the information for an SSH key by `name`: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vultr from "@ediri/vultr"; * * const mySshKey = vultr.getSshKey({ * filters: [{ * name: "name", * values: ["my-ssh-key-name"], * }], * }); * ``` */ function getSshKey(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vultr:index/getSshKey:getSshKey", { "filters": args.filters, }, opts); } exports.getSshKey = getSshKey; /** * Get information about a Vultr SSH key. This data source provides the name, public SSH key, and the creation date for your Vultr SSH key. * * ## Example Usage * * Get the information for an SSH key by `name`: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vultr from "@ediri/vultr"; * * const mySshKey = vultr.getSshKey({ * filters: [{ * name: "name", * values: ["my-ssh-key-name"], * }], * }); * ``` */ function getSshKeyOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("vultr:index/getSshKey:getSshKey", { "filters": args.filters, }, opts); } exports.getSshKeyOutput = getSshKeyOutput; //# sourceMappingURL=getSshKey.js.map