import requests
url = "https://platform.ankra.app/org/applications/{application_id}/launch-plan/data-migration/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}/launch-plan/data-migration/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}/launch-plan/data-migration/runs/{run_id} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"application_id": "<string>",
"approval_id": "<string>",
"cluster_id": "<string>",
"commit_sha": "<string>",
"status": "running",
"plan": {},
"run": {},
"targets": {},
"environment_names": [
"<string>"
],
"rollback_requested_at": "2023-11-07T05:31:56Z",
"rollback_closes_at": "2023-11-07T05:31:56Z",
"started_by": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z"
}{
"detail": "<string>"
}Get a data migration (browser session)
One data-migration run of the application: its status (running, cut-over, completed, failed, rolling-back, rolled-back, rollback-failed), each step and rollback step with what happened, when the rollback window closes, and whether a rollback was requested. Requires applications.read.
import requests
url = "https://platform.ankra.app/org/applications/{application_id}/launch-plan/data-migration/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}/launch-plan/data-migration/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}/launch-plan/data-migration/runs/{run_id} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"application_id": "<string>",
"approval_id": "<string>",
"cluster_id": "<string>",
"commit_sha": "<string>",
"status": "running",
"plan": {},
"run": {},
"targets": {},
"environment_names": [
"<string>"
],
"rollback_requested_at": "2023-11-07T05:31:56Z",
"rollback_closes_at": "2023-11-07T05:31:56Z",
"started_by": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z"
}{
"detail": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
The run
One data-migration run of a Launch Plan (schema ankra.data-migration/v1, enginekit/datamigration). It carries the names of the staged environment values, never a value.
running, cut-over, completed, failed, rolling-back, rolled-back, rollback-failed The data-migration plan the approval covered: migrations, steps, environment changes, rollback steps, teardown checklist, actions and findings.
The state machine's run: every step and rollback step with its status, timestamps, detail and verification, the cutover time, and the failed step and reason.
Show child attributes
Show child attributes
When the rollback window closes; null before the cutover.