Queries zones in a specified region.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeZones

The operation that you want to perform.

Set the value to DescribeZones.

RegionId String Yes cn-hangzhou

The ID of the region where the Classic Load Balancer (CLB) instance is deployed.

Response parameters

Parameter Type Example Description
Zones Array of Zone

The list of zones.

Zone
ZoneId String cn-hangzhou-b

The ID of the zone.

LocalName String Hangzhou Zone

The name of the zone.

SlaveZones Array of SlaveZone

The list of secondary zones.

SlaveZone
ZoneId String cn-hangzhou-g

The ID of the secondary zone.

LocalName String Hangzhou Zone G

The name of the secondary zone.

RequestId String A48D35FF-440A-4BC0-A4A2-A9BF69B7E43A

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=DescribeZones
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<DescribeZonesResponse>
  <RequestId>3FF183FF-F4AA-40E8-8B5D-90788C6799C2</RequestId>
	  <Zones>
		    <Zone>
			      <SlaveZones>
				        <SlaveZone>
					          <ZoneId>cn-hangzhou-g</ZoneId>
					          <LocalName>Hangzhou Zone G</LocalName>
				        </SlaveZone>
				        <SlaveZone>
					          <ZoneId>cn-hangzhou-d</ZoneId>
					          <LocalName>Hangzhou Zone D</LocalName>
				        </SlaveZone>
			      </SlaveZones>
			      <ZoneId>cn-hangzhou-b</ZoneId>
			      <LocalName>Hangzhou Zone B</LocalName>
		    </Zone>
		    <Zone>
			      <SlaveZones>
				        <SlaveZone>
					          <ZoneId>cn-hangzhou-e</ZoneId>
					          <LocalName>Hangzhou Zone E</LocalName>
				        </SlaveZone>
			      </SlaveZones>
			      <ZoneId>cn-hangzhou-d</ZoneId>
			      <LocalName>Hangzhou Zone D</LocalName>
		    </Zone>
		    <Zone>
			      <SlaveZones>
				        <SlaveZone>
					          <ZoneId>cn-hangzhou-f</ZoneId>
					          <LocalName>Hangzhou Zone F</LocalName>
				        </SlaveZone>
				        <SlaveZone>
					          <ZoneId>cn-hangzhou-d</ZoneId>
					          <LocalName>Hangzhou Zone D</LocalName>
				        </SlaveZone>
			      </SlaveZones>
			      <ZoneId>cn-hangzhou-e</ZoneId>
			      <LocalName>Hangzhou Zone E</LocalName>
		    </Zone>
		    <Zone>
			      <SlaveZones>
				        <SlaveZone>
					          <ZoneId>cn-hangzhou-e</ZoneId>
					          <LocalName>Hangzhou Zone E</LocalName>
				        </SlaveZone>
			      </SlaveZones>
			      <ZoneId>cn-hangzhou-f</ZoneId>
			      <LocalName>Hangzhou Zone F</LocalName>
		    </Zone>
		    <Zone>
			      <SlaveZones>
				        <SlaveZone>
					          <ZoneId>cn-hangzhou-h</ZoneId>
					          <LocalName>Hangzhou Zone H</LocalName>
				        </SlaveZone>
				        <SlaveZone>
					          <ZoneId>cn-hangzhou-b</ZoneId>
					          <LocalName>Hangzhou Zone B</LocalName>
				        </SlaveZone>
			      </SlaveZones>
			      <ZoneId>cn-hangzhou-g</ZoneId>
			      <LocalName>Hangzhou Zone G</LocalName>
		    </Zone>
		    <Zone>
			      <SlaveZones>
				        <SlaveZone>
					          <ZoneId>cn-hangzhou-g</ZoneId>
					          <LocalName>Hangzhou Zone G</LocalName>
				        </SlaveZone>
			      </SlaveZones>
			      <ZoneId>cn-hangzhou-h</ZoneId>
			      <LocalName>Hangzhou Zone H</LocalName>
		    </Zone>
	  </Zones>
</DescribeZonesResponse>

JSON format

{
    "RequestId": "3FF183FF-F4AA-40E8-8B5D-90788C6799C2", 
    "Zones": {
        "Zone": [
            {
                "SlaveZones": {
                    "SlaveZone": [
                        {
                            "ZoneId": "cn-hangzhou-g", 
                            "LocalName": "Hangzhou Zone G"
                        }, 
                        {
                            "ZoneId": "cn-hangzhou-d", 
                            "LocalName": "Hangzhou Zone D"
                        }
                    ]
                }, 
                "ZoneId": "cn-hangzhou-b", 
                "LocalName": "Hangzhou Zone B"
            }, 
            {
                "SlaveZones": {
                    "SlaveZone": [
                        {
                            "ZoneId": "cn-hangzhou-e", 
                            "LocalName": "Hangzhou Zone E"
                        }
                    ]
                }, 
                "ZoneId": "cn-hangzhou-d", 
                "LocalName": "Hangzhou Zone D"
            }, 
            {
                "SlaveZones": {
                    "SlaveZone": [
                        {
                            "ZoneId": "cn-hangzhou-f", 
                            "LocalName": "Hangzhou Zone F"
                        }, 
                        {
                            "ZoneId": "cn-hangzhou-d", 
                            "LocalName": "Hangzhou Zone D"
                        }
                    ]
                }, 
                "ZoneId": "cn-hangzhou-e", 
                "LocalName": "Hangzhou Zone E"
            }, 
            {
                "SlaveZones": {
                    "SlaveZone": [
                        {
                            "ZoneId": "cn-hangzhou-e", 
                            "LocalName": "Hangzhou Zone E"
                        }
                    ]
                }, 
                "ZoneId": "cn-hangzhou-f", 
                "LocalName": "Hangzhou Zone F"
            }, 
            {
                "SlaveZones": {
                    "SlaveZone": [
                        {
                            "ZoneId": "cn-hangzhou-h", 
                            "LocalName": "Hangzhou Zone H"
                        }, 
                        {
                            "ZoneId": "cn-hangzhou-b", 
                            "LocalName": "Hangzhou Zone B"
                        }
                    ]
                }, 
                "ZoneId": "cn-hangzhou-g", 
                "LocalName": "Hangzhou Zone G"
            }, 
            {
                "SlaveZones": {
                    "SlaveZone": [
                        {
                            "ZoneId": "cn-hangzhou-g", 
                            "LocalName": "Hangzhou Zone G"
                        }
                    ]
                }, 
                "ZoneId": "cn-hangzhou-h", 
                "LocalName": "Hangzhou Zone H"
            }
        ]
    }
}

Error codes

HttpCode Error code Error message Description
400 InvalidParameter Illegal parameter, query.namespace is not auth. The error message returned because the service is unauthorized. Acquire the permissions and try again.

For a list of error codes, visit the API Error Center.