Queries the zones that support Enterprise Edition transit routers in a specified region.

Description

You can call this operation to query the zones that support Enterprise Edition transit routers in a specified region. If no response is returned, this indicates that Enterprise Edition transit routers are not supported in the 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 No ListTransitRouterAvailableResource

The operation that you want to perform. Set the value to ListTransitRouterAvailableResource.

RegionId String Yes cn-shanghai

The ID of the region.

You can call the DescribeRegions operation to query region IDs.

Response parameters

Parameter Type Example Description
MasterZones List cn-shanghai-f

The list of primary zones.

RequestId String F82BAEFB-5F46-464A-A322-63A602CF3EE7

The ID of the request.

SlaveZones List cn-shanghai-g

The list of secondary zones.

Examples

Sample requests

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

Sample success responses

XML format

<ListTransitRouterAvailableResourceResponse> 
  <SlaveZones>cn-shanghai-f</SlaveZones>
  <SlaveZones>cn-shanghai-g</SlaveZones>
  <RequestId>A61530E0-4A20-4DFD-B4E6-80748007E006</RequestId>
  <MasterZones>cn-shanghai-f</MasterZones>
  <MasterZones>cn-shanghai-g</MasterZones>
</ListTransitRouterAvailableResourceResponse>

JSON format

{
  "SlaveZones": [
    "cn-shanghai-f",
    "cn-shanghai-g"
  ],
  "RequestId": "A61530E0-4A20-4DFD-B4E6-80748007E006",
  "MasterZones": [
    "cn-shanghai-f",
    "cn-shanghai-g"
  ]
}

Error codes

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