1. Packages
  2. Google Cloud Native
  3. API Docs
  4. oslogin
  5. oslogin/v1alpha
  6. getSshPublicKey

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-native logo

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:

    SshPublicKeyId string
    UserId string
    SshPublicKeyId string
    UserId string
    sshPublicKeyId String
    userId String
    sshPublicKeyId string
    userId string
    sshPublicKeyId String
    userId String

    getSshPublicKey Result

    The following output properties are available:

    ExpirationTimeUsec string
    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.
    ExpirationTimeUsec string
    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.
    expirationTimeUsec String
    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.
    expirationTimeUsec string
    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_usec str
    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.
    expirationTimeUsec String
    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-native logo

    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