@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
82 lines (81 loc) • 2.4 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* `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",
* });
* ```
*/
export declare function getSshKey(args: GetSshKeyArgs, opts?: pulumi.InvokeOptions): Promise<GetSshKeyResult>;
/**
* A collection of arguments for invoking getSshKey.
*/
export interface GetSshKeyArgs {
/**
* The ID of the SSH Key
*/
id?: string;
/**
* The label of the SSH Key to select.
*/
label: string;
}
/**
* A collection of values returned by getSshKey.
*/
export interface GetSshKeyResult {
/**
* The date this key was added.
*/
readonly created: string;
/**
* The ID of the SSH Key
*/
readonly id?: string;
readonly label: string;
/**
* The public SSH Key, which is used to authenticate to the root user of the Linodes you deploy.
*/
readonly sshKey: string;
}
/**
* `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",
* });
* ```
*/
export declare function getSshKeyOutput(args: GetSshKeyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSshKeyResult>;
/**
* A collection of arguments for invoking getSshKey.
*/
export interface GetSshKeyOutputArgs {
/**
* The ID of the SSH Key
*/
id?: pulumi.Input<string>;
/**
* The label of the SSH Key to select.
*/
label: pulumi.Input<string>;
}