Available datacentres

Get a list of available datacentres.

Request

Endpoint: /api/datacentres
Method: GET
Headers: Accept: application/vnd.cloudlx.v1+json
Authorization: Bearer <access_token>

Optional GET request parameters

continent_id Description The ID of the continent where the datacentre is located
Type Integer
Example 2
country_id Description The ID of the country where the datacentre is located
Type Integer
Example 19
city_id Description The ID of the city where the datacentre is located
Type Integer
Example 34

Response

Example:

                                
    {
        "datacentre": [
            {
                "id": 1,
                "name": "Global Hubs US1",
                "city": [
                {
                    "id": 1,
                    "name": "Atlanta",
                    "country": {
                        "id": 455,
                        "name": "United States",
                        "continent": {
                            "id": 2,
                            "name": "AMERICAS",
                        }
                    },
                },
            },
            ...
        ]
    }
                                
                            
id Description The id of the datacentre
Type Integer
Example 1
name Description The datacentre name
Type String
Example Global Hubs US1
city Description An object of the city the datacentre exists in
Type Object
Example Object definitions can be found on the Cities Locality API page

Back to top