Queries the list of zones that support IPsec-VPN connection deployment in a specified region by calling the DescribeVpnGatewayAvailableZones operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:DescribeVpnGatewayAvailableZones |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| Spec |
string |
Yes |
The bandwidth specification.
Different bandwidth specifications may affect the returned zone information. Valid values:
|
5M |
| AcceptLanguage |
string |
No |
The language in which the returned results are displayed. Valid values:
|
zh-CN |
| GatewayType |
string |
No |
The VPN gateway type. Valid values:
|
Traditional |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RegionId |
string |
The region ID. |
cn-hangzhou |
| RequestId |
string |
The request ID. |
29784052-931F-543D-A612-36B3838163FA |
| AvailableZoneIdList |
array<object> |
The list of zones. |
|
|
object |
The zone information. |
||
| ZoneId |
string |
The zone ID. |
cn-hangzhou-h |
| ZoneName |
string |
The zone name. |
cn-hangzhou-h |
Examples
Success response
JSON format
{
"RegionId": "cn-hangzhou",
"RequestId": "29784052-931F-543D-A612-36B3838163FA",
"AvailableZoneIdList": [
{
"ZoneId": "cn-hangzhou-h",
"ZoneName": "cn-hangzhou-h"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Forbbiden.SubUser | User not authorized to operate on the specified resource as your account is created by another user. | |
| 403 | Forbidden | User not authorized to operate on the specified resource. | You do not have the permissions to manage the specified resource. Apply for the permissions and try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.