Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

GetSshKey

Using GetSshKey

function getSshKey(args: GetSshKeyArgs, opts?: InvokeOptions): Promise<GetSshKeyResult>
def get_ssh_key(fingerprint: Optional[str] = None, id: Optional[int] = None, name: Optional[str] = None, selector: Optional[str] = None, with_selector: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetSshKeyResult
func LookupSshKey(ctx *Context, args *LookupSshKeyArgs, opts ...InvokeOption) (*LookupSshKeyResult, error)

Note: This function is named LookupSshKey in the Go SDK.

public static class GetSshKey {
    public static Task<GetSshKeyResult> InvokeAsync(GetSshKeyArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Fingerprint string

Fingerprint of the SSH Key.

Id int

ID of the SSH Key.

Name string

Name of the SSH Key.

Selector string

Deprecated: Please use the with_selector property instead.

WithSelector string

Label selector

Fingerprint string

Fingerprint of the SSH Key.

Id int

ID of the SSH Key.

Name string

Name of the SSH Key.

Selector string

Deprecated: Please use the with_selector property instead.

WithSelector string

Label selector

fingerprint string

Fingerprint of the SSH Key.

id number

ID of the SSH Key.

name string

Name of the SSH Key.

selector string

Deprecated: Please use the with_selector property instead.

withSelector string

Label selector

fingerprint str

Fingerprint of the SSH Key.

id int

ID of the SSH Key.

name str

Name of the SSH Key.

selector str

Deprecated: Please use the with_selector property instead.

with_selector str

Label selector

GetSshKey Result

The following output properties are available:

Fingerprint string

(string) Fingerprint of the SSH Key.

Id int

(int) Unique ID of the SSH Key.

Labels Dictionary<string, object>
Name string

(string) Name of the SSH Key.

PublicKey string

(string) Public Key of the SSH Key.

Selector string

Deprecated: Please use the with_selector property instead.

WithSelector string
Fingerprint string

(string) Fingerprint of the SSH Key.

Id int

(int) Unique ID of the SSH Key.

Labels map[string]interface{}
Name string

(string) Name of the SSH Key.

PublicKey string

(string) Public Key of the SSH Key.

Selector string

Deprecated: Please use the with_selector property instead.

WithSelector string
fingerprint string

(string) Fingerprint of the SSH Key.

id number

(int) Unique ID of the SSH Key.

labels {[key: string]: any}
name string

(string) Name of the SSH Key.

publicKey string

(string) Public Key of the SSH Key.

selector string

Deprecated: Please use the with_selector property instead.

withSelector string
fingerprint str

(string) Fingerprint of the SSH Key.

id int

(int) Unique ID of the SSH Key.

labels Mapping[str, Any]
name str

(string) Name of the SSH Key.

public_key str

(string) Public Key of the SSH Key.

selector str

Deprecated: Please use the with_selector property instead.

with_selector str

Package Details

Repository
https://github.com/pulumi/pulumi-hcloud
License
Apache-2.0
Notes
This Pulumi package is based on the hcloud Terraform Provider.