import requests
url = "https://platform.ankra.app/api/v1/org/executions/{execution_id}/retry"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/executions/{execution_id}/retry', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/executions/{execution_id}/retry \
--header 'Authorization: Bearer <token>'{
"display_name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scope": "cluster",
"status": "running",
"type": "<string>",
"capture_trigger": "stop",
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cluster_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"error_excerpt": "<string>",
"outcome": "unknown",
"step_summary": {
"failed": 0,
"pending": 0,
"running": 0,
"succeeded": 0,
"total": 0
},
"updated_at": "2023-11-07T05:31:56Z",
"upgrade": {
"from_version": "<string>",
"target_version": "<string>"
}
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Retry a terminal execution
Starts a new execution that repeats a failed, cancelled or critical execution’s steps, and returns the new execution. Answers 409 when the execution is in any other state, when none of its steps has a target resource left to act on, when one of its steps is still running or cancelling, or while any execution in its retry tree (the execution it was retried from, every retry of that one, and their retries) is still live: one retry tree has at most one live execution.
import requests
url = "https://platform.ankra.app/api/v1/org/executions/{execution_id}/retry"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/executions/{execution_id}/retry', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/executions/{execution_id}/retry \
--header 'Authorization: Bearer <token>'{
"display_name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scope": "cluster",
"status": "running",
"type": "<string>",
"capture_trigger": "stop",
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cluster_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"error_excerpt": "<string>",
"outcome": "unknown",
"step_summary": {
"failed": 0,
"pending": 0,
"running": 0,
"succeeded": 0,
"total": 0
},
"updated_at": "2023-11-07T05:31:56Z",
"upgrade": {
"from_version": "<string>",
"target_version": "<string>"
}
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"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
cluster, platform running, stopping, success, cleanup, failed, critical, cancelled What asked for a cluster_state_snapshot execution's capture; null on every other execution.
stop, power_schedule, scheduled unknown, noop, mutated, failed, cancelled Show child attributes
Show child attributes
The Kubernetes version change an upgrade run rolls out, recorded when the upgrade started it.
Show child attributes
Show child attributes