Create an SSH public key
HTTP request
POST https://oslogin.googleapis.com/v1beta/{parent=users/*}/sshPublicKeys
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. The unique ID for the user in format |
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-platformhttps://www.googleapis.com/auth/compute
For more information, see the Authentication Overview.