Skip to content

Latest commit

 

History

History
62 lines (49 loc) · 1.58 KB

File metadata and controls

62 lines (49 loc) · 1.58 KB

Zones

Each zone consists of physically isolated hosts, storage, and networking infrastructure. Like deploying workloads across regions, deploying workloads over multiple zones can help ensure high availability of applications.

List zones

curl -X GET \
   -H "MC-Api-Key: your_api_key" \
   "https://cloudmc_endpoint/api/v2/services/compute-on/test_area/zones"

The above command returns a JSON structured like this:

{
    "data": [
        {
            "id": "ea901007-056b-4c50-bb3a-2dd635fce2ab",
            "name": "ON-1"
        }
    ],
    "metadata": {
        "recordCount": 1
    }
}

GET /services/:service_code/:environment_name/zones

Retrieve a list of available zones.

Attributes  
id
UUID
The id of the zone
name
string
The name of the zone

Retrieve a zone

curl -X GET \
   -H "MC-Api-Key: your_api_key" \
   "https://cloudmc_endpoint/api/v2/services/compute-on/test_area/zones/ea901007-056b-4c50-bb3a-2dd635fce2ab"

The above command returns a JSON structured like this:

{
    "data": {
        "id": "ea901007-056b-4c50-bb3a-2dd635fce2ab",
        "name": "ON-1"
    }
}

GET /services/:service_code/:environment_name/zones/:id

Retrieve a zone

Attributes  
id
UUID
The id of the zone
name
string
The name of the zone