1. Packages
  2. Scaleway
  3. API Docs
  4. getIamSshKey
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

scaleway.getIamSshKey

Explore with Pulumi AI

scaleway logo
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

    Use this data source to get SSH key information based on its ID or name.

    Using getIamSshKey

    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 getIamSshKey(args: GetIamSshKeyArgs, opts?: InvokeOptions): Promise<GetIamSshKeyResult>
    function getIamSshKeyOutput(args: GetIamSshKeyOutputArgs, opts?: InvokeOptions): Output<GetIamSshKeyResult>
    def get_iam_ssh_key(name: Optional[str] = None,
                        project_id: Optional[str] = None,
                        ssh_key_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetIamSshKeyResult
    def get_iam_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[GetIamSshKeyResult]
    func LookupIamSshKey(ctx *Context, args *LookupIamSshKeyArgs, opts ...InvokeOption) (*LookupIamSshKeyResult, error)
    func LookupIamSshKeyOutput(ctx *Context, args *LookupIamSshKeyOutputArgs, opts ...InvokeOption) LookupIamSshKeyResultOutput

    > Note: This function is named LookupIamSshKey in the Go SDK.

    public static class GetIamSshKey 
    {
        public static Task<GetIamSshKeyResult> InvokeAsync(GetIamSshKeyArgs args, InvokeOptions? opts = null)
        public static Output<GetIamSshKeyResult> Invoke(GetIamSshKeyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIamSshKeyResult> getIamSshKey(GetIamSshKeyArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: scaleway:index/getIamSshKey:getIamSshKey
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The SSH key name.
    ProjectId string
    project_id) The ID of the project the SSH key is associated with.
    SshKeyId string

    The SSH key id.

    Note You must specify at least one: name and/or ssh_key_id.

    Name string
    The SSH key name.
    ProjectId string
    project_id) The ID of the project the SSH key is associated with.
    SshKeyId string

    The SSH key id.

    Note You must specify at least one: name and/or ssh_key_id.

    name String
    The SSH key name.
    projectId String
    project_id) The ID of the project the SSH key is associated with.
    sshKeyId String

    The SSH key id.

    Note You must specify at least one: name and/or ssh_key_id.

    name string
    The SSH key name.
    projectId string
    project_id) The ID of the project the SSH key is associated with.
    sshKeyId string

    The SSH key id.

    Note You must specify at least one: name and/or ssh_key_id.

    name str
    The SSH key name.
    project_id str
    project_id) The ID of the project the SSH key is associated with.
    ssh_key_id str

    The SSH key id.

    Note You must specify at least one: name and/or ssh_key_id.

    name String
    The SSH key name.
    projectId String
    project_id) The ID of the project the SSH key is associated with.
    sshKeyId String

    The SSH key id.

    Note You must specify at least one: name and/or ssh_key_id.

    getIamSshKey Result

    The following output properties are available:

    CreatedAt string
    The date and time of the creation of the SSH key.
    Disabled bool
    The SSH key status.
    Fingerprint string
    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId string
    The ID of the organization the SSH key is associated with.
    PublicKey string
    The SSH public key string
    UpdatedAt string
    The date and time of the last update of the SSH key.
    Name string
    ProjectId string
    SshKeyId string
    CreatedAt string
    The date and time of the creation of the SSH key.
    Disabled bool
    The SSH key status.
    Fingerprint string
    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId string
    The ID of the organization the SSH key is associated with.
    PublicKey string
    The SSH public key string
    UpdatedAt string
    The date and time of the last update of the SSH key.
    Name string
    ProjectId string
    SshKeyId string
    createdAt String
    The date and time of the creation of the SSH key.
    disabled Boolean
    The SSH key status.
    fingerprint String
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId String
    The ID of the organization the SSH key is associated with.
    publicKey String
    The SSH public key string
    updatedAt String
    The date and time of the last update of the SSH key.
    name String
    projectId String
    sshKeyId String
    createdAt string
    The date and time of the creation of the SSH key.
    disabled boolean
    The SSH key status.
    fingerprint string
    id string
    The provider-assigned unique ID for this managed resource.
    organizationId string
    The ID of the organization the SSH key is associated with.
    publicKey string
    The SSH public key string
    updatedAt string
    The date and time of the last update of the SSH key.
    name string
    projectId string
    sshKeyId string
    created_at str
    The date and time of the creation of the SSH key.
    disabled bool
    The SSH key status.
    fingerprint str
    id str
    The provider-assigned unique ID for this managed resource.
    organization_id str
    The ID of the organization the SSH key is associated with.
    public_key str
    The SSH public key string
    updated_at str
    The date and time of the last update of the SSH key.
    name str
    project_id str
    ssh_key_id str
    createdAt String
    The date and time of the creation of the SSH key.
    disabled Boolean
    The SSH key status.
    fingerprint String
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId String
    The ID of the organization the SSH key is associated with.
    publicKey String
    The SSH public key string
    updatedAt String
    The date and time of the last update of the SSH key.
    name String
    projectId String
    sshKeyId String

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse