Linux: getAuthorizedKeysView

Requires authorization

Returns a list of authorized public keys for a specific user account. Try it now.

Request

HTTP request

POST https://www.googleapis.com/clouduseraccounts/beta/projects/project/zones/zone/authorizedKeysView/user

Parameters

Parameter name Value Description
Path parameters
project string Project ID for this request.
user string The user account for which you want to get a list of authorized public keys.
zone string Name of the zone for this request.
Required query parameters
instance string The fully-qualified URL of the virtual machine requesting the view.

Authorization

This request requires authorization with at least one of the following scopes (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/cloud.useraccounts.readonly
https://www.googleapis.com/auth/cloud.useraccounts
https://www.googleapis.com/auth/cloud-platform.read-only
https://www.googleapis.com/auth/cloud-platform

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

{
  "resource": {
    "keys": [
      string
    ]
  }
}
Property name Value Description Notes
resource nested object [Output Only] A list of authorized public keys for a user.
resource.keys[] list [Output Only] The list of authorized public keys in SSH format.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Compute Engine Documentation