/organization/projects/{project_id}/service_accountsCreate a project service account
Creates a service account in a project and, by default, returns an unredacted API key for it. Supply a name; set create_service_account_only to create the account without default roles or an API key, and use expires_in_seconds to configure the initial key's lifetime.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Service account creation details. name is required; other fields control whether to create an API key and its expiration.
A 400 is returned when the project is archived; a 403 when the authenticated user lacks permission; a 404 when a requested project, user, service account, or API key is not found; and a 429 when management requests are being sent too frequently. name is required, and expires_in_seconds, when non-null, must be between 1 and 31536000; if omitted or null, the key does not expire unless an effective organization or project policy requires an expiration. The project_id path parameter must identify an existing project.