List connected pipeline repositories
import requests
url = "https://platform.ankra.app/api/v1/org/pipelines/repositories"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/pipelines/repositories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/pipelines/repositories \
--header 'Authorization: Bearer <token>'{
"repositories": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "github",
"owner": "<string>",
"name": "<string>",
"credential_name": "<string>",
"default_branch": "<string>",
"application_id": "<string>",
"cluster_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"last_trigger": {},
"merge_train_enabled": true,
"merge_train_max_cars": 4
}
],
"next_cursor": "<string>"
}Pipelines
List connected pipeline repositories
Pages the organisation's connected repositories, newest first. provider, owner and name narrow the listing, so provider=github&owner=<owner>&name=<name> finds the repository a checkout's origin names, with its merge train settings, in one request. Needs pipelines.read. A browser session twin is mounted at the same path without the /api/v1 prefix (cookie authentication).
GET
/
api
/
v1
/
org
/
pipelines
/
repositories
List connected pipeline repositories
import requests
url = "https://platform.ankra.app/api/v1/org/pipelines/repositories"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/pipelines/repositories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/pipelines/repositories \
--header 'Authorization: Bearer <token>'{
"repositories": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "github",
"owner": "<string>",
"name": "<string>",
"credential_name": "<string>",
"default_branch": "<string>",
"application_id": "<string>",
"cluster_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"last_trigger": {},
"merge_train_enabled": true,
"merge_train_max_cars": 4
}
],
"next_cursor": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Only repositories on this provider.
Available options:
github, gitlab, bitbucket_cloud Only repositories with this owner, compared without case. A single path segment.
Only repositories with this name, compared without case. A single path segment.
The next_cursor of the previous page.
Required range:
1 <= x <= 100