Skip to content

Regions

Regions, also referred to as datacenters, play a key role in our services, as they determine the geographic location of the servers we are going to create. In case it is not possible to create a server in a particular region, changing datacenters could solve the problem of lack of resources.

All Regions.

To find out which regions are available there is the following request:

HTTP Request

GET /ecs/v2/regions

HTTP Response

{
    "status": "ok",
    "regions": [
        {
            "location": "ch-lug1",  #region code
            "description": "Lugano" #region label
        },
        {
            "location": "hr-zag1",
            "description": "Zagabria"
        },
        {
            "location": "it-fr2",
            "description": "Frosinone"
        },
        {
            "location": "it-mi2",
            "description": "Milano"
        }
    ]
}

Available regions.

Of course, certain plans may not be available in all regions; to check the availability of a plan in a particular region you can use the following request:

HTTP Request

POST /ecs/v2/regions/availables
{
  “plan": ”ECS6”
}

HTTP Response

{
    "status": "ok",
    "regions": [    #region available for this plan
        "it-fr2"
    ]
}

!!! warning “Warning” If you try to create a plan in an unavailable region the request will be accepted but The Action resulting from it will fail due to lack of resources.