UNPKG

@pulumi/linode

Version:

A Pulumi package for creating and managing linode cloud resources.

102 lines 3.18 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.getSshkeysOutput = exports.getSshkeys = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * `linode.SshKey` provides access to a filtered list of SSH Keys 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-keys). * * ## Example Usage * * The following example shows how the resource might be used to obtain the names of the SSH Keys configured on the Linode user profile. * * The following example shows how one might use this data source to access information about a Linode Kernel. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const filteredSsh = linode.getSshkeys({ * filters: [ * { * name: "label", * values: ["my-ssh"], * }, * { * name: "ssh_key", * values: ["RSA-6522525"], * }, * ], * }); * ``` * * ## Filterable Fields * * * `id` * * * `label` * * * `sshKey` */ function getSshkeys(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("linode:index/getSshkeys:getSshkeys", { "filters": args.filters, "order": args.order, "orderBy": args.orderBy, "sshkeys": args.sshkeys, }, opts); } exports.getSshkeys = getSshkeys; /** * `linode.SshKey` provides access to a filtered list of SSH Keys 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-keys). * * ## Example Usage * * The following example shows how the resource might be used to obtain the names of the SSH Keys configured on the Linode user profile. * * The following example shows how one might use this data source to access information about a Linode Kernel. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const filteredSsh = linode.getSshkeys({ * filters: [ * { * name: "label", * values: ["my-ssh"], * }, * { * name: "ssh_key", * values: ["RSA-6522525"], * }, * ], * }); * ``` * * ## Filterable Fields * * * `id` * * * `label` * * * `sshKey` */ function getSshkeysOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("linode:index/getSshkeys:getSshkeys", { "filters": args.filters, "order": args.order, "orderBy": args.orderBy, "sshkeys": args.sshkeys, }, opts); } exports.getSshkeysOutput = getSshkeysOutput; //# sourceMappingURL=getSshkeys.js.map