Lists linked version control providers
Required permission
Account > Git > General > Read
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.min1max100page
integerThe page number to access.min1cursor
stringThe cursor returned from the previous page of results, used to request the next page.min length24max length24
Response body
- {object}Response object.
data
{object} requiredResult data.vcsAccountLinks
[array] requiredThe version control accounts linked to this Northflank account.- {object}Details about the linked version control account.
vcsService
string requiredThe type of version control provider the account is linked to.one ofbitbucket, gitlab, github, self-hosted, azure, originemail
(multiple options: oneOf)The email of the account linked with this provider.login
string requiredThe username of the account linked with this provider.vcsLinkId
string requiredThe ID of this linked version control account. Pass this value as `vcsLinkId` when creating a harness or service from this account.alias
stringA user-defined alias for the linked version control account, if set.name
stringThe name of the version control provider. Only returned for self-hosted links.vcsUrl
stringThe url of the version control provider. Only returned for self-hosted links.vcsType
stringThe type of the self-hosted vcs provider. Only returned for self-hosted links.one ofgitlab-ee, github-ghe, giteainternalId
stringThe ID of the self-hosted vcs provider. Only returned for self-hosted links.entityName
stringThe name of the team the self-hosted vcs belongs to. Only returned for self-hosted links.originTargetSlug
stringThe Cursor Origin installation target slug.originRepoSelectionMode
stringWhether the Origin installation grants all or selected repositories.one ofall, selectedoriginScopes
[array]The repository scopes granted to the Origin installation.- string
originMissingScopes
[array]The Origin scopes required for full Northflank functionality but not granted.- string
pagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
OR
GET /v1/integrations/vcs
GET /v1/teams/{teamId}/integrations/vcs
Example response
200 OK
Details about the version control providers available for use.
JSON
{
"data": {
"vcsAccountLinks": [
{
"vcsService": "self-hosted",
"login": "vcs-user",
"vcsLinkId": "63ebb6ce2ccc6c7affdbf253",
"alias": "my-github",
"name": "Self-hosted VCS",
"vcsUrl": "https://git.example.com",
"vcsType": "gitlab-ee",
"internalId": "example-team/self-hosted-vcs",
"entityName": "Example Team",
"originTargetSlug": "example-team"
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}