Service accounts
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
Filter expression to narrow results. Uses the Admiral filter DSL.
Filterable fields:
issuer_id: service accounts that trust this issuer.agent_id: the service account this agent runs as.
Example: field['issuer_id'] = 'iss-4m8q2x7k1p9c'
length <= 1024The page_size query parameter.
int320 <= value <= 100The page_token query parameter.
Response Body
application/json
curl -X GET "https://example.com/v1/service-accounts"{ "service_accounts": [ { "id": "string", "agent_id": "string", "issuer_id": "string", "subject": "string", "enrolled_at": "2023-01-15T01:30:15.01Z", "created_by": { "id": "string", "display_name": "string", "email": "string" }, "created_at": "2023-01-15T01:30:15.01Z", "name": "string" } ], "next_page_token": "string"}Retrieve a service account GET
Scope: `serviceaccount:read`
Create a source POST
- An integration grant is checked here, with no network call. The integration must be a CONNECTED GitHub integration of this organization and the location must be a repository its installation reaches: under the installation's account, and in its repository list when the selection is SELECTED. FAILED_PRECONDITION otherwise, naming which. - A credential grant is checked at fetch, the way an import is, since a credential carries hosts and never repositories. The credential must exist in this organization and allow the location's host. FAILED_PRECONDITION when it does not. ALREADY_EXISTS when the organization has a source of this name. Scope: `source:write`