Method: users.projects.locations.signSshPublicKey

Signs an SSH public key for a user to authenticate to an instance.

HTTP request

POST https://oslogin.googleapis.com/v1beta/{parent=users/*/projects/*/locations/*}:signSshPublicKey

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

The parent project and zone for the signing request. This is needed to properly ensure per-organization ISS processing and potentially to provide for the possibility of zone-specific certificates used in the signing process.

Request body

The request body contains data with the following structure:

JSON representation
{
  "sshPublicKey": string
}
Fields
sshPublicKey

string

The SSH public key to sign.

Response body

If successful, the response body contains an instance of SignSshPublicKeyResponse.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/compute

For more information, see the Authentication Overview.