Scaleway v1.25.0 published on Saturday, Mar 22, 2025 by pulumiverse
scaleway.account.getSshKey
Explore with Pulumi AI
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 and API documentation for more information.
Using getSshKey
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSshKey(args: GetSshKeyArgs, opts?: InvokeOptions): Promise<GetSshKeyResult>
function getSshKeyOutput(args: GetSshKeyOutputArgs, opts?: InvokeOptions): Output<GetSshKeyResult>def get_ssh_key(name: Optional[str] = None,
                project_id: Optional[str] = None,
                ssh_key_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetSshKeyResult
def get_ssh_key_output(name: Optional[pulumi.Input[str]] = None,
                project_id: Optional[pulumi.Input[str]] = None,
                ssh_key_id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetSshKeyResult]func LookupSshKey(ctx *Context, args *LookupSshKeyArgs, opts ...InvokeOption) (*LookupSshKeyResult, error)
func LookupSshKeyOutput(ctx *Context, args *LookupSshKeyOutputArgs, opts ...InvokeOption) LookupSshKeyResultOutput> Note: This function is named LookupSshKey in the Go SDK.
public static class GetSshKey 
{
    public static Task<GetSshKeyResult> InvokeAsync(GetSshKeyArgs args, InvokeOptions? opts = null)
    public static Output<GetSshKeyResult> Invoke(GetSshKeyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSshKeyResult> getSshKey(GetSshKeyArgs args, InvokeOptions options)
public static Output<GetSshKeyResult> getSshKey(GetSshKeyArgs args, InvokeOptions options)
fn::invoke:
  function: scaleway:account/getSshKey:getSshKey
  arguments:
    # arguments dictionaryThe following arguments are supported:
- name str
- The name of the SSH key.
- project_id str
- project_id) The unique identifier of the project with which the SSH key is associated.
- ssh_key_ strid 
- The unique identifier of the SSH key. - Note You must specify at least one: - nameand/or- ssh_key_id.
getSshKey Result
The following output properties are available:
- CreatedAt string
- Disabled bool
- Fingerprint string
- Id string
- The provider-assigned unique ID for this managed resource.
- OrganizationId string
- The unique identifier of the Organization with which the SSH key is associated.
- PublicKey string
- The string of the SSH public key.
- UpdatedAt string
- Name string
- ProjectId string
- SshKey stringId 
- CreatedAt string
- Disabled bool
- Fingerprint string
- Id string
- The provider-assigned unique ID for this managed resource.
- OrganizationId string
- The unique identifier of the Organization with which the SSH key is associated.
- PublicKey string
- The string of the SSH public key.
- UpdatedAt string
- Name string
- ProjectId string
- SshKey stringId 
- createdAt String
- disabled Boolean
- fingerprint String
- id String
- The provider-assigned unique ID for this managed resource.
- organizationId String
- The unique identifier of the Organization with which the SSH key is associated.
- publicKey String
- The string of the SSH public key.
- updatedAt String
- name String
- projectId String
- sshKey StringId 
- createdAt string
- disabled boolean
- fingerprint string
- id string
- The provider-assigned unique ID for this managed resource.
- organizationId string
- The unique identifier of the Organization with which the SSH key is associated.
- publicKey string
- The string of the SSH public key.
- updatedAt string
- name string
- projectId string
- sshKey stringId 
- created_at str
- disabled bool
- fingerprint str
- id str
- The provider-assigned unique ID for this managed resource.
- organization_id str
- The unique identifier of the Organization with which the SSH key is associated.
- public_key str
- The string of the SSH public key.
- updated_at str
- name str
- project_id str
- ssh_key_ strid 
- createdAt String
- disabled Boolean
- fingerprint String
- id String
- The provider-assigned unique ID for this managed resource.
- organizationId String
- The unique identifier of the Organization with which the SSH key is associated.
- publicKey String
- The string of the SSH public key.
- updatedAt String
- name String
- projectId String
- sshKey StringId 
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the scalewayTerraform Provider.
