List an application's deploy runs
import requests
url = "https://platform.ankra.app/org/applications/{application_id}/deploy-runs"
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/org/applications/{application_id}/deploy-runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/applications/{application_id}/deploy-runs \
--header 'Authorization: Bearer <token>'{
"deploy_runs": [
{
"id": "<string>",
"cluster_id": "<string>",
"cluster_name": "<string>",
"cluster_deleted": true,
"status": "<string>",
"message": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"finished_at": "<string>",
"roles": [
{
"role": "<string>",
"position": 123,
"draft_id": "<string>",
"stack_name": "<string>",
"created_stack_name": "<string>",
"operation_id": "<string>",
"status": "<string>",
"message": "<string>"
}
]
}
],
"truncated": true
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Applications
List an application's deploy runs
List the deploy runs recorded for this application, newest first. application_deploy_run is written when the user presses Deploy and carries the cluster, the ordered roles and the stack name confirmed for each, so an application can show a deploy that is queued, in flight or failed without the browser having remembered its run id - which was previously the only way to reach one. The listing is capped at 50 runs and reports truncated=true when older runs exist beyond it. An unknown application answers 404 rather than an empty list. Browser session authentication only (no bearer twin).
GET
/
org
/
applications
/
{application_id}
/
deploy-runs
List an application's deploy runs
import requests
url = "https://platform.ankra.app/org/applications/{application_id}/deploy-runs"
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/org/applications/{application_id}/deploy-runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/applications/{application_id}/deploy-runs \
--header 'Authorization: Bearer <token>'{
"deploy_runs": [
{
"id": "<string>",
"cluster_id": "<string>",
"cluster_name": "<string>",
"cluster_deleted": true,
"status": "<string>",
"message": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"finished_at": "<string>",
"roles": [
{
"role": "<string>",
"position": 123,
"draft_id": "<string>",
"stack_name": "<string>",
"created_stack_name": "<string>",
"operation_id": "<string>",
"status": "<string>",
"message": "<string>"
}
]
}
],
"truncated": true
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
Successful Response