UNPKG

@pulumi/hcloud

Version:

A Pulumi package for creating and managing hcloud cloud resources.

54 lines 1.85 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getSshKeysOutput = exports.getSshKeys = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as hcloud from "@pulumi/hcloud"; * * const all = hcloud.getSshKeys({}); * const byLabel = hcloud.getSshKeys({ * withSelector: "foo=bar", * }); * const main = new hcloud.Server("main", {sshKeys: all.then(all => all.sshKeys.map(__item => __item.name))}); * ``` */ function getSshKeys(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("hcloud:index/getSshKeys:getSshKeys", { "id": args.id, "withSelector": args.withSelector, }, opts); } exports.getSshKeys = getSshKeys; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as hcloud from "@pulumi/hcloud"; * * const all = hcloud.getSshKeys({}); * const byLabel = hcloud.getSshKeys({ * withSelector: "foo=bar", * }); * const main = new hcloud.Server("main", {sshKeys: all.then(all => all.sshKeys.map(__item => __item.name))}); * ``` */ function getSshKeysOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("hcloud:index/getSshKeys:getSshKeys", { "id": args.id, "withSelector": args.withSelector, }, opts); } exports.getSshKeysOutput = getSshKeysOutput; //# sourceMappingURL=getSshKeys.js.map