@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
76 lines (75 loc) • 2.69 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* The `scaleway.account.SshKey` data source is used to retrieve information about a the SSH key of a Scaleway account.
*
* Refer to the Organizations and Projects [documentation](https://www.scaleway.com/en/docs/organizations-and-projects/how-to/create-ssh-key/) and [API documentation](https://www.scaleway.com/en/developers/api/iam/#path-ssh-keys) for more information.
*/
export declare function getSshKey(args?: GetSshKeyArgs, opts?: pulumi.InvokeOptions): Promise<GetSshKeyResult>;
/**
* A collection of arguments for invoking getSshKey.
*/
export interface GetSshKeyArgs {
/**
* The name of the SSH key.
*/
name?: string;
/**
* `projectId`) The unique identifier of the project with which the SSH key is associated.
*/
projectId?: string;
/**
* The unique identifier of the SSH key.
*
* > **Note** You must specify at least one: `name` and/or `sshKeyId`.
*/
sshKeyId?: string;
}
/**
* A collection of values returned by getSshKey.
*/
export interface GetSshKeyResult {
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 unique identifier of the Organization with which the SSH key is associated.
*/
readonly organizationId: string;
readonly projectId?: string;
/**
* The string of the SSH public key.
*/
readonly publicKey: string;
readonly sshKeyId?: string;
readonly updatedAt: string;
}
/**
* The `scaleway.account.SshKey` data source is used to retrieve information about a the SSH key of a Scaleway account.
*
* Refer to the Organizations and Projects [documentation](https://www.scaleway.com/en/docs/organizations-and-projects/how-to/create-ssh-key/) and [API documentation](https://www.scaleway.com/en/developers/api/iam/#path-ssh-keys) for more information.
*/
export declare function getSshKeyOutput(args?: GetSshKeyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSshKeyResult>;
/**
* A collection of arguments for invoking getSshKey.
*/
export interface GetSshKeyOutputArgs {
/**
* The name of the SSH key.
*/
name?: pulumi.Input<string>;
/**
* `projectId`) The unique identifier of the project with which the SSH key is associated.
*/
projectId?: pulumi.Input<string>;
/**
* The unique identifier of the SSH key.
*
* > **Note** You must specify at least one: `name` and/or `sshKeyId`.
*/
sshKeyId?: pulumi.Input<string>;
}