Queries route entries of a gateway route table.
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 gateway route table. You can call the DescribeRegions operation to query the most recent list of regions. | ap-southeast-6 |
MaxResults | integer | No | The number of entries to return on each page. Valid values: 1 to 100. Default value: 10. | 10 |
NextToken | string | No | The pagination token that is used in the next request to retrieve a new page of results. Valid values:
| FFmyTO70tTpLG6I3FmYAXGKPd**** |
GatewayRouteTableId | string | Yes | The ID of the gateway route table that you want to query. | vtb-5ts0ohchwkp3dydt2**** |
DestinationCidrBlock | string | No | The destination CIDR block of the route entry in the gateway route table. | 192.168.0.5 |
Response parameters
Examples
Sample success responses
JSON
format
{
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0",
"TotalCount": "1",
"GatewayRouteEntryModels": [
{
"Status": "Available",
"NextHopId": "i-bp11gcl0sm85t9bi****",
"Description": "test",
"NextHopType": "EcsInstance",
"DestinationCidrBlock": "192.168.0.5",
"Name": "name",
"NextHops": [
{
"NextHopId": "vpn-bp10zyaph5cc8b7c7****",
"NextHopType": "Instance",
"Weight": "100",
"Enabled": "1"
}
]
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ResourceNotFound.GatewayRouteTable | The specified resource GatewayRouteTable is not found. | The gateway route table cannot be found. |
400 | IllegalParam.NextToken | The param of nextToken is illegal | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-08-07 | API Description Update. The Error code has changed | View Change Details |