Get a data migration (browser session)
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/launch-plan/data-migration/runs/{run_id}"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.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://api.platform.ankra.app/org/applications/{application_id}/launch-plan/data-migration/runs/{run_id} \
--cookie ankra_session={
"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>"
}Applications
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.
GET
/
org
/
applications
/
{application_id}
/
launch-plan
/
data-migration
/
runs
/
{run_id}
Get a data migration (browser session)
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/launch-plan/data-migration/runs/{run_id}"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.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://api.platform.ankra.app/org/applications/{application_id}/launch-plan/data-migration/runs/{run_id} \
--cookie ankra_session={
"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
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.