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>",
"initiated_by": "<string>",
"intent": "cluster_create",
"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>"
},
"user_id": "<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, when one of its steps would deploy an add-on, manifest or application of a stack that has since been uninstalled (install the stack instead), 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>",
"initiated_by": "<string>",
"intent": "cluster_create",
"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>"
},
"user_id": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Response
Successful Response
What the execution does to its cluster as a whole: cluster_create for the operation that creates the cluster, cluster_delete for the one that deletes it. Null on every other execution, and on one started before the intent was recorded.
cluster_create, cluster_delete