Method: users.sshPublicKeys.create

Create an SSH public key

HTTP request

POST https://oslogin.googleapis.com/v1/{parent=users/*}/sshPublicKeys

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The unique ID for the user in format users/{user}.

Request body

The request body contains an instance of SshPublicKey.

Response body

If successful, the response body contains a newly created instance of SshPublicKey.

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.