Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.oslogin/v1alpha.getSshPublicKey
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Retrieves an SSH public key.
Using getSshPublicKey
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 getSshPublicKey(args: GetSshPublicKeyArgs, opts?: InvokeOptions): Promise<GetSshPublicKeyResult>
function getSshPublicKeyOutput(args: GetSshPublicKeyOutputArgs, opts?: InvokeOptions): Output<GetSshPublicKeyResult>
def get_ssh_public_key(ssh_public_key_id: Optional[str] = None,
user_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSshPublicKeyResult
def get_ssh_public_key_output(ssh_public_key_id: Optional[pulumi.Input[str]] = None,
user_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSshPublicKeyResult]
func LookupSshPublicKey(ctx *Context, args *LookupSshPublicKeyArgs, opts ...InvokeOption) (*LookupSshPublicKeyResult, error)
func LookupSshPublicKeyOutput(ctx *Context, args *LookupSshPublicKeyOutputArgs, opts ...InvokeOption) LookupSshPublicKeyResultOutput
> Note: This function is named LookupSshPublicKey
in the Go SDK.
public static class GetSshPublicKey
{
public static Task<GetSshPublicKeyResult> InvokeAsync(GetSshPublicKeyArgs args, InvokeOptions? opts = null)
public static Output<GetSshPublicKeyResult> Invoke(GetSshPublicKeyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSshPublicKeyResult> getSshPublicKey(GetSshPublicKeyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:oslogin/v1alpha:getSshPublicKey
arguments:
# arguments dictionary
The following arguments are supported:
- Ssh
Public stringKey Id - User
Id string
- Ssh
Public stringKey Id - User
Id string
- ssh
Public StringKey Id - user
Id String
- ssh
Public stringKey Id - user
Id string
- ssh_
public_ strkey_ id - user_
id str
- ssh
Public StringKey Id - user
Id String
getSshPublicKey Result
The following output properties are available:
- Expiration
Time stringUsec - An expiration time in microseconds since epoch.
- Fingerprint string
- The SHA-256 fingerprint of the SSH public key.
- Key string
- Public key text in SSH format, defined by RFC4253 section 6.6.
- Name string
- The canonical resource name.
- Expiration
Time stringUsec - An expiration time in microseconds since epoch.
- Fingerprint string
- The SHA-256 fingerprint of the SSH public key.
- Key string
- Public key text in SSH format, defined by RFC4253 section 6.6.
- Name string
- The canonical resource name.
- expiration
Time StringUsec - An expiration time in microseconds since epoch.
- fingerprint String
- The SHA-256 fingerprint of the SSH public key.
- key String
- Public key text in SSH format, defined by RFC4253 section 6.6.
- name String
- The canonical resource name.
- expiration
Time stringUsec - An expiration time in microseconds since epoch.
- fingerprint string
- The SHA-256 fingerprint of the SSH public key.
- key string
- Public key text in SSH format, defined by RFC4253 section 6.6.
- name string
- The canonical resource name.
- expiration_
time_ strusec - An expiration time in microseconds since epoch.
- fingerprint str
- The SHA-256 fingerprint of the SSH public key.
- key str
- Public key text in SSH format, defined by RFC4253 section 6.6.
- name str
- The canonical resource name.
- expiration
Time StringUsec - An expiration time in microseconds since epoch.
- fingerprint String
- The SHA-256 fingerprint of the SSH public key.
- key String
- Public key text in SSH format, defined by RFC4253 section 6.6.
- name String
- The canonical resource name.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi