DescribeZones
Call the DescribeZones operation to query the list of zones in a specified region that support PrivateLink. In cross-region scenarios, zone support is independent on the endpoint side and the endpoint service side. This operation lets you query the supported zones separately for each side.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID where the zones are located. Get the region ID by calling the DescribeRegions operation. |
cn-hangzhou |
| ServiceResourceType |
string |
No |
Zone support for PrivateLink in a region depends on the backend service resource type. When querying the list of zones that support PrivateLink, specify the service resource type. Valid values:
Valid values:
|
slb |
| RegionId |
string |
Yes |
The region ID where the zones are located. Get the region ID by calling the DescribeRegions operation. |
cn-hangzhou |
| CrossRegion |
boolean |
No |
Whether the scenario is cross-region. Default value: false. Set CrossRegion to true and use it with CrossRegionSide in the following scenarios:
|
false |
| CrossRegionSide |
string |
No |
Specify whether to query zone support for the initiator or the service provider in a cross-region connection. Valid values:
Note
This field takes effect only when CrossRegion=true. Valid values:
|
EndpointService |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F |
| Zones |
object |
||
| Zone |
array<object> |
The collection of zones. |
|
|
object |
The collection of zones. |
||
| LocalName |
string |
The zone name. |
华东1 可用区B |
| ZoneId |
string |
The zone ID. |
cn-hangzhou-b |
Examples
Success response
JSON format
{
"RequestId": "611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F",
"Zones": {
"Zone": [
{
"LocalName": "华东1 可用区B",
"ZoneId": "cn-hangzhou-b"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.