UNPKG

@pulumi/linode

Version:

A Pulumi package for creating and managing linode cloud resources.

58 lines 2.2 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.getSshKeyOutput = exports.getSshKey = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * `linode.SshKey` provides access to a specifically labeled SSH Key in the Profile of the User identified by the access token. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-ssh-key). * * ## Example Usage * * The following example shows how the resource might be used to obtain the name of the SSH Key configured on the Linode user profile. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const foo = linode.getSshKey({ * label: "foo", * }); * ``` */ function getSshKey(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("linode:index/getSshKey:getSshKey", { "id": args.id, "label": args.label, }, opts); } exports.getSshKey = getSshKey; /** * `linode.SshKey` provides access to a specifically labeled SSH Key in the Profile of the User identified by the access token. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-ssh-key). * * ## Example Usage * * The following example shows how the resource might be used to obtain the name of the SSH Key configured on the Linode user profile. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const foo = linode.getSshKey({ * label: "foo", * }); * ``` */ function getSshKeyOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("linode:index/getSshKey:getSshKey", { "id": args.id, "label": args.label, }, opts); } exports.getSshKeyOutput = getSshKeyOutput; //# sourceMappingURL=getSshKey.js.map