Adds an SSH public key and returns the profile information. Default POSIX account information is set when no username and UID exist as part of the login profile.
Request
- Base URL: https://oslogin.googleapis.com
- URL: https://oslogin.googleapis.com/v1/{+parent}:importSshPublicKey
- Auth: one of:
- OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/cloud-platform) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/cloud-platform)
- OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/compute) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/compute)
Path parameters
Required. The unique ID for the user in format users/{user}.
Query parameters
The project ID of the Google Cloud Platform project.
Optional. The regions to which to assert that the key was written. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.
Request body
Response
Successful response
Changes
- breaking
removed the request body
- breaking
removed the media type
*/*for the response with the status - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/computewas removed from the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/computewas removed from the endpoint's security schemeOauth2c
- breaking
- info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/computewas removed from the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/computewas removed from the endpoint's security schemeOauth2c
- info