Method: users.projects.locations.signSshPublicKey

Signs an SSH public key for a user to authenticate to a virtual machine on Google Compute Engine.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

The parent project and region for the signing request.

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.