All Products
Search
Document Center

Server Load Balancer:DescribeZones

Last Updated:Sep 20, 2024

Queries zones in a region.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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.

object
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.

object
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
400InvalidParameterEnter a Virtual Gateway IP address.
400InvalidParameterIllegal parameter, query.namespace is not auth.

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

Change history

Change timeSummary of changesOperation
No change history