Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse
scaleway.getAccountSshKey
Explore with Pulumi AI
The scaleway.AccountSshKey
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 getAccountSshKey
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 getAccountSshKey(args: GetAccountSshKeyArgs, opts?: InvokeOptions): Promise<GetAccountSshKeyResult>
function getAccountSshKeyOutput(args: GetAccountSshKeyOutputArgs, opts?: InvokeOptions): Output<GetAccountSshKeyResult>
def get_account_ssh_key(name: Optional[str] = None,
project_id: Optional[str] = None,
ssh_key_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAccountSshKeyResult
def get_account_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[GetAccountSshKeyResult]
func LookupAccountSshKey(ctx *Context, args *LookupAccountSshKeyArgs, opts ...InvokeOption) (*LookupAccountSshKeyResult, error)
func LookupAccountSshKeyOutput(ctx *Context, args *LookupAccountSshKeyOutputArgs, opts ...InvokeOption) LookupAccountSshKeyResultOutput
> Note: This function is named LookupAccountSshKey
in the Go SDK.
public static class GetAccountSshKey
{
public static Task<GetAccountSshKeyResult> InvokeAsync(GetAccountSshKeyArgs args, InvokeOptions? opts = null)
public static Output<GetAccountSshKeyResult> Invoke(GetAccountSshKeyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAccountSshKeyResult> getAccountSshKey(GetAccountSshKeyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: scaleway:index/getAccountSshKey:getAccountSshKey
arguments:
# arguments dictionary
The 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:
name
and/orssh_key_id
.
getAccountSshKey Result
The following output properties are available:
- Created
At string - Disabled bool
- Fingerprint string
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - The unique identifier of the Organization with which the SSH key is associated.
- Public
Key string - The string of the SSH public key.
- Updated
At string - Name string
- Project
Id string - Ssh
Key stringId
- Created
At string - Disabled bool
- Fingerprint string
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - The unique identifier of the Organization with which the SSH key is associated.
- Public
Key string - The string of the SSH public key.
- Updated
At string - Name string
- Project
Id string - Ssh
Key stringId
- created
At String - disabled Boolean
- fingerprint String
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - The unique identifier of the Organization with which the SSH key is associated.
- public
Key String - The string of the SSH public key.
- updated
At String - name String
- project
Id String - ssh
Key StringId
- created
At string - disabled boolean
- fingerprint string
- id string
- The provider-assigned unique ID for this managed resource.
- organization
Id string - The unique identifier of the Organization with which the SSH key is associated.
- public
Key string - The string of the SSH public key.
- updated
At string - name string
- project
Id string - ssh
Key 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
- created
At String - disabled Boolean
- fingerprint String
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - The unique identifier of the Organization with which the SSH key is associated.
- public
Key String - The string of the SSH public key.
- updated
At String - name String
- project
Id String - ssh
Key StringId
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.