All Products
Search
Document Center

Server Load Balancer:DescribeZones

Last Updated:Mar 10, 2025

Queries the zones in a region.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the Server Load Balancer (SLB) instance.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

A48D35FF-440A-4BC0-A4A2-A9BF69B7E43A
Zonesarray<object>

The zones.

Zoneobject
ZoneIdstring

The ID of the zone.

cn-hangzhou-b
LocalNamestring

The name of the zone.

The list of secondary zones.
SlaveZonesarray<object>

The secondary zones.

SlaveZoneobject
ZoneIdstring

The ID of the secondary zone.

cn-hangzhou-g
LocalNamestring

The name of the secondary zone.

Queries zones in a specified region.

Examples

Sample success responses

JSONformat

{
  "RequestId": "A48D35FF-440A-4BC0-A4A2-A9BF69B7E43A",
  "Zones": {
    "Zone": [
      {
        "ZoneId": "cn-hangzhou-b",
        "LocalName": "The list of secondary zones.\n",
        "SlaveZones": {
          "SlaveZone": [
            {
              "ZoneId": "cn-hangzhou-g",
              "LocalName": "Queries zones in a specified region."
            }
          ]
        }
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterInvalidParameter-
400InvalidParameterIllegal parameter, query.namespace is not auth.
403UnauthorizedRegionThe specified region of is not authorized.The specified region of is not authorized.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2025-02-14The Error code has changedView Change Details