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.
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 | |
|---|---|
idUUID |
The id of the zone |
namestring |
The name of the 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 | |
|---|---|
idUUID |
The id of the zone |
namestring |
The name of the zone |