Linux: getAuthorizedKeysView

Requires authorization

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


HTTP request



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.


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


Request body

Do not supply a request body with this method.


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

  "resource": {
    "keys": [
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.

Send feedback about...

Compute Engine Documentation