Method: projects.serviceAccounts.keys.list

Lists ServiceAccountKeys.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



The resource name of the service account in the following format: projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}.

Using - as a wildcard for the PROJECT_ID, will infer the project from the account. The ACCOUNT value can be the email address or the uniqueId of the service account.

Authorization requires the following Google IAM permission on the specified resource name:

  • iam.serviceAccountKeys.list

Query parameters


enum (KeyType)

Filters the types of keys the user wants to include in the list response. Duplicate key types are not allowed. If no key type is provided, all keys are returned.

Request body

The request body must be empty.

Response body

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

The service account keys list response.

JSON representation
  "keys": [
      object (ServiceAccountKey)

object (ServiceAccountKey)

The public keys for the service account.

Authorization Scopes

Requires one of the following OAuth scopes:


For more information, see the Authentication Overview.


KeyType filters to selectively retrieve certain varieties of keys.

KEY_TYPE_UNSPECIFIED Unspecified key type. The presence of this in the message will immediately result in an error.
USER_MANAGED User-managed keys (managed and rotated by the user).
SYSTEM_MANAGED System-managed keys (managed and rotated by Google).
이 페이지가 도움이 되었나요? 평가를 부탁드립니다.

다음에 대한 의견 보내기...