Method: users.sshPublicKey.create

Create an SSH public key

HTTP request

POST https://oslogin.googleapis.com/v1beta/{parent=users/*}/sshPublicKey

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.