Queries policy-based routes configured for a VPN gateway.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RegionId | string | Yes | The region ID of the VPN gateway. You can call the DescribeRegions operation to query the most recent region list. | cn-zhangjiakou |
| VpnGatewayId | string | Yes | The ID of the VPN gateway. | vpn-bp1a3kqjiiq9legfx**** |
| PageNumber | integer | No | The page number. Default value: 1. | 1 |
| PageSize | integer | No | The number of entries per page. Maximum value: 50. Default value: 10. | 10 |
Response parameters
Examples
Sample success responses
JSONformat
{
"PageSize": 10,
"RequestId": "5BE01CD7-5A50-472D-AC14-CA181C5C03BE\t",
"PageNumber": 1,
"TotalCount": 1,
"VpnPbrRouteEntries": {
"VpnPbrRouteEntry": [
{
"NextHop": "vco-bp15oes1py4i66rmd****\t",
"Weight": 0,
"RouteDest": "10.0.0.0/24",
"State": "published",
"CreateTime": 1492747187000,
"VpnInstanceId": "vpn-bp1a3kqjiiq9legfx****",
"RouteSource": "192.168.0.0/24",
"Priority": 10,
"NextHopTunnelId": "tun-opsqc4d97wni2****"
}
]
}
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | InvalidVpnInstanceId.NotFound | The specified VPN was not found. | - |
| 400 | InvalidVpnGatewayInstanceId.NotFound | The specified vpn gateway instance id does not exist. | The specified VPN gateway does not exist. Check whether the specified VPN gateway is valid. |
| 403 | Forbbiden.SubUser | User not authorized to operate on the specified resource as your account is created by another user. | You are unauthorized to perform this operation on the specified resource. Acquire the required permissions and try again. |
| 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. |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2024-01-04 | The Error code has changed | View Change Details |
| 2023-10-19 | API Description Update. The Error code has changed | View Change Details |
| 2023-06-13 | The Error code has changed. The response structure of the API has changed | View Change Details |
