Querying AZs
Function
This API is used to query AZs.
URI
GET /v2.1/{project_id}/os-availability-zone
|
Parameter |
Mandatory |
Description |
|---|---|---|
|
project_id |
Yes |
Specifies the project ID. For details about how to obtain the ID, see Obtaining a Project ID. |
Response
Table 2 describes the response parameters.
|
Parameter |
Type |
Description |
|---|---|---|
|
availabilityZoneInfo |
Array of objects |
Specifies the AZ information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
zoneState |
Object |
Specifies the AZ status. |
|
hosts |
List |
The parameter is set to null. |
|
zoneName |
String |
Specifies the AZ name. |
|
Parameter |
Type |
Description |
|---|---|---|
|
available |
Boolean |
Specifies the AZ status. |
Example Request
GET https://{endpoint}/v2.1/9c53a566cb3443ab910cf0daebca90c4/os-availability-zone
Example Response
{
"availabilityZoneInfo": [{
"zoneState": {
"available": true
},
"hosts": null,
"zoneName": "az1.dc1"
},
{
"zoneState": {
"available": true
},
"hosts": null,
"zoneName": "vmware.az1"
}]
}
Returned Values
Last Article: AZ
Next Article: Tag Management
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.