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 |
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 |
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.