Cut a zone move over
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/zone-move/cutover"
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/clusters/imported/{cluster_id}/zone-move/cutover', 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/clusters/imported/{cluster_id}/zone-move/cutover \
--header 'Authorization: Bearer <token>'{
"move": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source_cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"zone": "<string>",
"status": "planned",
"plan": {
"target": {
"name": "<string>",
"zone": "<string>",
"network_mode": "<string>",
"storage_tier": "<string>",
"control_plane": {
"plan": "<string>",
"count": 123
},
"bastion_plan": "<string>",
"node_groups": [
{
"name": "<string>",
"plan": "<string>",
"count": 123
}
],
"existing_cluster_id": "<string>"
},
"stacks": [
{
"name": "<string>",
"carried": true,
"reason": "<string>",
"namespaces": [
"<string>"
],
"seeded": true,
"stopped_with_source": true,
"vault": {
"id": "<string>",
"name": "<string>",
"basis": "request"
}
}
],
"data": [
{
"stack": "<string>",
"namespace": "<string>",
"name": "<string>",
"kind": "<string>",
"engine": "<string>",
"requested_bytes": 123,
"storage_class": "<string>",
"target_storage_class": "<string>"
}
],
"not_carried": [
{
"what": "<string>",
"reason": "<string>"
}
],
"dns": [
{
"hostname": "<string>",
"mechanism": "<string>",
"source_origin": "<string>",
"target_origin": "<string>"
}
],
"storage_class_mapping": {},
"load_balancers": [
{
"service": {
"namespace": "<string>",
"name": "<string>"
},
"source_load_balancer_id": "<string>",
"target_load_balancer_id": "<string>"
}
],
"warnings": [
"<string>"
]
},
"steps": [
{
"name": "<string>",
"status": "pending",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"message": "<string>"
}
],
"soak_until": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"error_excerpt": "<string>"
}
}Ankra Cloud Clusters
Cut a zone move over
Starts the cutover of a move in ready_for_cutover: the edge maintenance page goes up for the source’s proxied names, the source’s writers are scaled to zero and its CronJobs suspended (the counts are recorded and stamped on each workload) and its active Jobs drained, the frozen source is copied onto the target again and deployed, the target is given the recorded counts and must be ready, the proxied names are repointed at the target’s load balancers, and the source is paused. The move then soaks. Requires stacks.write and clusters.operate on the source.
POST
/
api
/
v1
/
org
/
clusters
/
imported
/
{cluster_id}
/
zone-move
/
cutover
Cut a zone move over
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/zone-move/cutover"
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/clusters/imported/{cluster_id}/zone-move/cutover', 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/clusters/imported/{cluster_id}/zone-move/cutover \
--header 'Authorization: Bearer <token>'{
"move": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source_cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"zone": "<string>",
"status": "planned",
"plan": {
"target": {
"name": "<string>",
"zone": "<string>",
"network_mode": "<string>",
"storage_tier": "<string>",
"control_plane": {
"plan": "<string>",
"count": 123
},
"bastion_plan": "<string>",
"node_groups": [
{
"name": "<string>",
"plan": "<string>",
"count": 123
}
],
"existing_cluster_id": "<string>"
},
"stacks": [
{
"name": "<string>",
"carried": true,
"reason": "<string>",
"namespaces": [
"<string>"
],
"seeded": true,
"stopped_with_source": true,
"vault": {
"id": "<string>",
"name": "<string>",
"basis": "request"
}
}
],
"data": [
{
"stack": "<string>",
"namespace": "<string>",
"name": "<string>",
"kind": "<string>",
"engine": "<string>",
"requested_bytes": 123,
"storage_class": "<string>",
"target_storage_class": "<string>"
}
],
"not_carried": [
{
"what": "<string>",
"reason": "<string>"
}
],
"dns": [
{
"hostname": "<string>",
"mechanism": "<string>",
"source_origin": "<string>",
"target_origin": "<string>"
}
],
"storage_class_mapping": {},
"load_balancers": [
{
"service": {
"namespace": "<string>",
"name": "<string>"
},
"source_load_balancer_id": "<string>",
"target_load_balancer_id": "<string>"
}
],
"warnings": [
"<string>"
]
},
"steps": [
{
"name": "<string>",
"status": "pending",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"message": "<string>"
}
],
"soak_until": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"error_excerpt": "<string>"
}
}