compute
GET /v1/compute/servers/{serverId}/region-move
Read what moving a server to another city would involve.
Authentication
Send an API key as a bearer token. The key must carry the sites.view permission; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X GET https://api.zinndigital.com/v1/compute/servers/{serverId}/region-move \
-H "Authorization: Bearer zdk_live_…"Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
What the server page states before a server can be moved to another city: whether its supplier can carry it there (carry: any_city, copy_first or none; a dedicated machine is none), the other cities it could be rebuilt in, each marked available for this server's size now (null when the stock read is unknown), the server's current public addresses, that every one of them changes in a move (addresses_change), and how many days the old server is kept after a move (old_server_hold_days) so DNS can be re-pointed. Read-only: nothing is snapshotted, built or charged. Server moves open only after site moves are proven reliable, so offered is false and a movable server answers blocked_reason: opens_after_site_moves; the other reasons are not_active, supplier_cannot_carry and no_other_city. Locations are Zinn® location ids and cities are city names, never a supplier's token or name. A server the caller cannot see is a 404, the same as one that does not exist. Requires sites.view.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
serverId (path) | Uuid | Yes | The server's id, as listComputeServers reports it. Ours (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine. |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
server_id | string | Yes | — |
current_location | string | Yes | The Zinn® location id the server is in now. |
current_city | string | Yes | The city the server is in now, "" when we have no city for it. |
carry | string<any_city, copy_first, none> | Yes | How the server's snapshot reaches another city at its supplier: rebuilt in any city, copied into the target city first, or not at all (no move). |
offered | boolean | Yes | Whether this account may start a move now. |
blocked_reason | string<not_active, supplier_cannot_carry, no_other_city, opens_after_site_moves> | Yes | — |
cities | object[] | Yes | — |
current_addresses | string[] | Yes | The server's public addresses now; every one changes in a move. |
addresses_change | boolean | Yes | Always true; a rebuilt server gets addresses from the target city. |
old_server_hold_days | integer | Yes | Days the old server is kept, stopped, after a move. |
Errors this endpoint can return
401 · 403 · 404 · 429