REST Resource: projects.serviceAccounts

Resource: ServiceAccount

A service account in the Identity and Access Management API.

To create a service account, specify the projectId and the accountId for the account. The accountId is unique within the project, and is used to generate the service account email address and a stable uniqueId.

If the account already exists, the account's resource name is returned in the format of projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}. The caller can use the name in other methods to access the account.

All other methods can identify the service account using the 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.