Docs
Live demo
GET/api/v2/connectors

Retrieve a paginated list of connectors for the organization

Parameters

Query4 optional
cursorstringquery

Opaque pagination cursor for the next page

limitintegerquery

Maximum number of items to return (default: 20, max: 100)

min 1 · max 100 · default 20
typestringquery

Return only connectors of this type

gitlabgooglegithubldapkubernetescustom
enabledbooleanquery

Return only enabled or disabled connectors

Responses

200

OK

ListConnectorsResponse · 4 fields
has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of ConnectorResponserequired
17 fields
created_atstring
descriptionstring
enabledboolean
idstring
last_sync_atstring
last_sync_statusstring
pendingrunningcompletedfailedrequires_approval
2 fields
groupmap of string → string
usermap of string → string
mapping_defaultboolean

True when the field mapping is the provider default Principal stores for a new connector.

namestring
organization_idstring
schedulestring
secret_refstring
specmap of string → any

The settings the connector uses, under canonical names only (base_url, groups, excluded_group_suffixes, page_size, include_outside_collaborators, sync_bot_and_service_accounts): a value stored under an old name is shown under its canonical name, and where names disagree the value the connector uses is shown. Clients show and send this form.

spec_conflictsarray of string

Canonical settings the stored spec names under several names with different values. Spec shows the value the connector uses for each. Saving the connector with the shown settings resolves them.

typestring (ConnectorType)
gitlabgooglegithubldapkubernetescustom
updated_atstring

The sync a connector has not finished, whoever queued it (Run sync now, an approval or the schedule): its state, its attempts and, after a failed attempt the queue retries, when the next one may start and why the last one failed. Reads of connectors carry it. A connector without an unfinished sync has none.

8 fields
job_idstring · uuidrequired
statusstring (entity.OperationLifecycle)required

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished
terminalbooleanrequired
outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
attemptsintegerrequired

Attempts that ran and failed.

max_attemptsintegerrequired
next_retry_atstring · date-time

When the next attempt may start after a failed one.

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

Common errors: 400 401 403 429 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close