Serviceaccounts
List service accounts
Scope: serviceaccount:read
Authorization
bearerAuth An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...
In: header
Query Parameters
The page_size query parameter.
int320 <= value <= 100The page_token query parameter.
An AIP-160 filter expression. Filterable fields are resource_name,
name, and issuer_id, the service accounts that trust that issuer.
resource_name takes the full resource name, name the short name, and
issuer_id an id.
Example: issuer_id = "iss-4m8q2x7k1p9c"
id is filterable too: id = "a" OR id = "b" reads up to 100 of
them by id in one call.
length <= 4096Fields to order by, in AIP-132 syntax such as created_at desc. Accepted
fields: created_at, name, updated_at. Left empty, the list keeps the
order stated above. An unknown field is INVALID_ARGUMENT.
length <= 256Response Body
application/json
curl -X GET "https://example.com/v1/serviceAccounts"{ "service_accounts": [ { "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" } ], "next_page_token": "string"}Retrieve a service account GET
- NOT_FOUND when no service account has that resource name. Scope: `serviceaccount:read`
Rename a service account POST
- ALREADY_EXISTS when another service account has the new name. - ABORTED when `etag` is set and the service account changed since it was read. Scope: `serviceaccount:write`