Queries destination-based and BGP route entries of a VPN gateway.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
vpc:DescribeVpnRouteEntries | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region where the VPN gateway is created. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
VpnGatewayId | string | Yes | The ID of the VPN gateway. | vpn-bp1cmw7jh1nfe43m9**** |
PageNumber | integer | No | The number of the page to return. Default value: 1. | 1 |
PageSize | integer | No | The number of entries to return on each page. Maximum value: 50. Default value: 10. | 10 |
RouteEntryType | string | No | The type of the route entry. Valid values:
| System |
Response parameters
Examples
Sample success responses
JSON
format
{
"PageSize": 10,
"RequestId": "BF3995A6-FA4F-4C74-B90F-89ECF4BFF4D5",
"PageNumber": 1,
"TotalCount": 1,
"VpnRouteEntries": {
"VpnRouteEntry": [
{
"RouteEntryType": "System",
"NextHop": "vco-bp1tui07ob10fmuro****",
"Weight": 100,
"RouteDest": "10.0.0.0/24",
"AsPath": "65501,65001,60011",
"State": "normal",
"CreateTime": 1563874074000,
"Community": "65001:1000,65501:2000",
"Source": "192.168.10.0/24",
"VpnInstanceId": "vpn-bp1cmw7jh1nfe43m9****",
"NextHopTunnelId": "tun-36cfgpwjn58axj****"
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | IllegalParam.RouteEntryType | The specified "RouteEntryType" is invalid. | - |
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-10-24 | The Error code has changed. The response structure of the API has changed | View Change Details |
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 |