Skip to main content
POST
Move a server to another region

Authorizations

Authorization
string
header
required

Your API key as it is, without Bearer. API access is off for new accounts: until it is turned on under Settings > API, every request answers 403 with API access is turned off for this account. Turn it on under Settings > API. If the account lists allowed IPs, a request from any other address answers 403 with This API key is not allowed from <address>.

Path Parameters

server
string
required

Body

application/json
region_id
integer
required

The location to move to, from regions in the options.

Example:

6

mode
enum<string>
required

transfer copies the server's disk to the new location, so files, applications and settings come along. The server is stopped while the disk is copied. fresh replaces the server with a new installation in the new location; everything on its disk is erased.

Available options:
transfer,
fresh
distro_id
integer

Required for fresh: the operating system to install. Accepts a Linux distro ID or a Windows iso ID, as on reinstall.

ssh_key_id
integer

Optional for a fresh Linux server, one of your SSH keys.

Response

The move was paid from your balance, or is free on a reseller account, and queued.

status
boolean
required
Example:

true

message
string
required
Example:

"The move to New York has been queued"

invoice_id
integer | null
required

The invoice paid from your balance, or null on a reseller account.

Example:

5012

amount_charged
number
required

What was taken from your balance, 0 on a reseller account.

Example:

2.5

region_change
object
required

A move of a server to another location.