import requests
url = "https://platform.ankra.app/org/applications/{application_id}/deploy-runs/{run_id}"
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/{run_id}', 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/{run_id} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"cluster_id": "<string>",
"status": "<string>",
"message": "<string>",
"resumed": true,
"divergence": "<string>",
"roles": [
{
"role": "<string>",
"position": 123,
"draft_id": "<string>",
"stack_name": "<string>",
"created_stack_name": "<string>",
"operation_id": "<string>",
"status": "<string>",
"message": "<string>"
}
],
"phases": [
{
"phase": "<string>",
"status": "<string>",
"detail": {},
"started_at": "<string>",
"finished_at": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Read an application deploy run
Read one deploy run and its per-role progress. This is the wizard’s progress display: the run is driven by the server, so the read is equally correct in a tab that was never open while it ran.
import requests
url = "https://platform.ankra.app/org/applications/{application_id}/deploy-runs/{run_id}"
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/{run_id}', 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/{run_id} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"cluster_id": "<string>",
"status": "<string>",
"message": "<string>",
"resumed": true,
"divergence": "<string>",
"roles": [
{
"role": "<string>",
"position": 123,
"draft_id": "<string>",
"stack_name": "<string>",
"created_stack_name": "<string>",
"operation_id": "<string>",
"status": "<string>",
"message": "<string>"
}
],
"phases": [
{
"phase": "<string>",
"status": "<string>",
"detail": {},
"started_at": "<string>",
"finished_at": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Successful Response
pending, running, succeeded, or failed.
True when the request joined a run that was already in flight instead of starting a new one.
How a resumed run differs from the queue the request carried (a role not in the run, a role deploying a different stack name or draft, or a differing role count). Null when the request asked for what is already in flight, and always null on a run this request started.
Show child attributes
Show child attributes
The run's journey timeline (analyse, build, stacks, dns, certificate, serving) in narration order, carrying only the phases an observation site stamped. A journey phase absent from the list was never observed.
Show child attributes
Show child attributes