UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

82 lines (81 loc) 2.36 kB
import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get SSH key information based on its ID or name. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const myKey = scaleway.getAccountSshKey({ * sshKeyId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ export declare function getAccountSshKey(args?: GetAccountSshKeyArgs, opts?: pulumi.InvokeOptions): Promise<GetAccountSshKeyResult>; /** * A collection of arguments for invoking getAccountSshKey. */ export interface GetAccountSshKeyArgs { /** * The SSH key name. Only one of `name` and `sshKeyId` should be specified. */ name?: string; /** * The SSH key id. Only one of `name` and `sshKeyId` should be specified. */ sshKeyId?: string; } /** * A collection of values returned by getAccountSshKey. */ export interface GetAccountSshKeyResult { readonly createdAt: string; readonly disabled: boolean; readonly fingerprint: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name?: string; /** * The ID of the organization the SSH key is associated with. */ readonly organizationId: string; readonly projectId: string; /** * The SSH public key string */ readonly publicKey: string; readonly sshKeyId?: string; readonly updatedAt: string; } /** * Use this data source to get SSH key information based on its ID or name. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const myKey = scaleway.getAccountSshKey({ * sshKeyId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ export declare function getAccountSshKeyOutput(args?: GetAccountSshKeyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAccountSshKeyResult>; /** * A collection of arguments for invoking getAccountSshKey. */ export interface GetAccountSshKeyOutputArgs { /** * The SSH key name. Only one of `name` and `sshKeyId` should be specified. */ name?: pulumi.Input<string>; /** * The SSH key id. Only one of `name` and `sshKeyId` should be specified. */ sshKeyId?: pulumi.Input<string>; }