List the repositories a source-control binding can reach
import requests
url = "https://platform.ankra.app/api/v1/org/ai-gateway/scm-bindings/{provider}/{binding_external_id}/repos"
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/ai-gateway/scm-bindings/{provider}/{binding_external_id}/repos', 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/ai-gateway/scm-bindings/{provider}/{binding_external_id}/repos \
--header 'Authorization: Bearer <token>'{
"provider": "<string>",
"binding_external_id": "<string>",
"repositories": [
{
"repo_full_name": "<string>",
"name": "<string>"
}
]
}AI Environment
List the repositories a source-control binding can reach
The repositories the GitHub App installation can read, sorted by name, with the repo_full_name a repository rule takes. GitHub App installations only: other providers answer 404. Any member of the organisation may read it.
GET
/
api
/
v1
/
org
/
ai-gateway
/
scm-bindings
/
{provider}
/
{binding_external_id}
/
repos
List the repositories a source-control binding can reach
import requests
url = "https://platform.ankra.app/api/v1/org/ai-gateway/scm-bindings/{provider}/{binding_external_id}/repos"
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/ai-gateway/scm-bindings/{provider}/{binding_external_id}/repos', 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/ai-gateway/scm-bindings/{provider}/{binding_external_id}/repos \
--header 'Authorization: Bearer <token>'{
"provider": "<string>",
"binding_external_id": "<string>",
"repositories": [
{
"repo_full_name": "<string>",
"name": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The source-control provider of the binding: github, gitlab or bitbucket.
The provider's own id of the binding: the GitHub App installation id, the GitLab or Bitbucket credential id.