Method: projects.locations.instances.keyRings.keys.list

Lists Keys in a KeyRing.

The caller must be an active User of the instance, or the request fails with PERMISSION_DENIED.

HTTP request

GET https://mpc.googleapis.com/v1beta/{parent=projects/*/locations/*/instances/*/keyRings/*}/keys

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent KeyRing. Format: projects/{project}/locations/{location}/instances/{instance}/keyRings/{keyRing} It takes the form projects/{project}/locations/{location}/instances/{instance}/keyRings/{keyring}.

Query parameters

Parameters
pageSize

integer

Optional. The maximum number of Keys to return. The server can return fewer. If pageSize is 0 or not set, the server returns at most 50. If pageSize is more than 1000, the server uses 1000. A negative value fails with INVALID_ARGUMENT.

pageToken

string

Optional. A page token from an earlier keys.list call. When a client requests the next page, the other fields must match the call that returned the token. An invalid page token fails with INVALID_ARGUMENT.

Request body

The request body must be empty.

Response body

Response message for KeyService.ListKeys.

If successful, the response body contains data with the following structure:

JSON representation
{
  "keys": [
    {
      object (Key)
    }
  ],
  "nextPageToken": string
}
Fields
keys[]

object (Key)

The Keys in the KeyRing.

nextPageToken

string

A token to retrieve the next page. Empty if there are no more pages.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.