Serviceaccounts
Create a service account
- ALREADY_EXISTS when another service account has that name, or trusts the same issuer and subject.
Scope: serviceaccount:write
Authorization
bearerAuth An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...
In: header
Query Parameters
(OPTIONAL) A UUID the client generates once per create and sends again on every retry. A repeat within 24 hours returns the first result and creates nothing. The same id with a different request is refused with INVALID_ARGUMENT. Without one, every call creates. request_id.not_zero // request_id may not be the zero UUID
uuidRequest Body
application/json
The service account to create: name, issuer_id and subject, and
optionally display_name and avatar_url. Output-only fields and
resource_name are ignored.
TypeScript Definitions
Use the request body type in TypeScript.
The service account to create: name, issuer_id and subject, and
optionally display_name and avatar_url. Output-only fields and
resource_name are ignored.
create_service_account.identity // issuer_id and subject are required
service_account.name.required // a service account needs a name
Response Body
application/json
curl -X POST "https://example.com/v1/serviceAccounts" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{ "service_account": { "id": "string", "name": "string", "display_name": "string", "avatar_url": "string", "resource_name": "string", "subject": "string", "issuer_id": "string", "enrolled_at": "2023-01-15T01:30:15.01Z", "status": "STATUS_UNSPECIFIED", "status_reason": "string", "etag": "string", "created_by": { "id": "string", "display_name": "string", "email": "string" }, "created_at": "2023-01-15T01:30:15.01Z", "updated_at": "2023-01-15T01:30:15.01Z" }}