Show which GitHub credential the application's repository calls ride on
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/repository-credential"
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/applications/{application_id}/repository-credential', 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/applications/{application_id}/repository-credential \
--header 'Authorization: Bearer <token>'{
"credential_name": "<string>",
"message": "<string>",
"resolved": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Applications
Show which GitHub credential the application's repository calls ride on
The GitHub credential the application names, and whether it resolves to a GitHub App installation Ankra can mint a token for. A browser session twin is mounted at the same path without the /api/v1 prefix (cookie authentication).
GET
/
api
/
v1
/
org
/
applications
/
{application_id}
/
repository-credential
Show which GitHub credential the application's repository calls ride on
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/repository-credential"
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/applications/{application_id}/repository-credential', 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/applications/{application_id}/repository-credential \
--header 'Authorization: Bearer <token>'{
"credential_name": "<string>",
"message": "<string>",
"resolved": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.