Admiral

Integrations

List connections

GET
/v1/integrations/{integration}/connections

Scope: integration:read

Authorization

bearerAuth
AuthorizationBearer <token>

An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...

In: header

Path Parameters

integration*string

The integration id.

Query Parameters

page_size?page_size

Maximum number of connections to return per page. Defaults to 50 when omitted or 0; must not exceed 100.

Formatint32
Range0 <= value <= 100
page_token?page_token

Opaque pagination token from a previous response.

filter?filter

An AIP-160 filter expression. Filterable fields are resource_name, name and status. resource_name takes the full resource name, with - for the integration, and name the short name.

Example: status = NEEDS_ATTENTION AND name = "acme"

id is filterable too: id = "a" OR id = "b" reads up to 100 of them by id in one call.

Lengthlength <= 4096
order_by?order_by

Fields 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.

Lengthlength <= 256

Response Body

application/json

curl -X GET "https://example.com/v1/integrations/string/connections"
{  "connections": [    {      "id": "string",      "name": "string",      "resource_name": "string",      "settings": {        "github": {          "installation_id": "string",          "account_login": "string",          "account_type": "ACCOUNT_TYPE_UNSPECIFIED",          "repository_selection": "REPOSITORY_SELECTION_UNSPECIFIED",          "repositories": [            "string"          ],          "url": "string",          "suspended_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"}