ListTransitRouterRouteEntries
Queries the details of the route entry in the routing table of an Enterprise Edition forwarding router.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:ListTransitRouterRouteEntries |
get |
TransitRouterRouteEntry
TransitRouterRouteTable
TransitRouterRouteEntry
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MaxResults |
integer |
No |
The number of entries to return per page. Valid values: 1 to 100. Default value: 20. |
20 |
TransitRouterRouteEntryDestinationCidrBlock
deprecated
|
string |
No |
The destination CIDR block of the route entry (This parameter is deprecated. Use the RouteFilter parameter instead). |
192.168.0.0/24 |
| TransitRouterRouteEntryStatus |
string |
No |
The status of the route entry. Valid values:
If you do not specify this parameter, the system queries only active route entries by default. |
Active |
| TransitRouterRouteTableId |
string |
Yes |
The ID of the route table of the Enterprise Edition transit router. |
vtb-bp1dudbh2d5na6b50**** |
| NextToken |
string |
No |
The token for the next query. Valid values:
|
fce19**** |
| TransitRouterRouteEntryNames |
array |
No |
The names of the route entry in the routing table. |
testname |
|
string |
No |
The name of the route entry. The name can be empty or 1 to 128 characters in length, and cannot start with http:// or https://. Note
The system only supports querying statically configured routing in the current routing table by using this parameter, and this parameter is incompatible with any parameter query other than TransitRouterRouteEntryIds. |
testname |
|
| TransitRouterRouteEntryIds |
array |
No |
The IDs of the route entry in the routing table. |
rte-oklkgwmj97z6dn**** |
|
string |
No |
The ID of the route entry. Note
The system only supports querying statically configured routing in the current routing table by using this parameter, and this parameter is incompatible with any parameter query other than TransitRouterRouteEntryNames. |
rte-oklkgwmj97z6dn**** |
|
| TransitRouterRouteEntryType |
string |
No |
The destination type of the route entry. Valid values:
|
Propagated |
| TransitRouterRouteEntryNextHopType |
string |
No |
The next hop type. Valid values:
|
Attachment |
| TransitRouterRouteEntryNextHopId |
string |
No |
The ID of the network instance connection associated with the next hop of the route entry. |
tr-attach-nls9fzkfat8934**** |
| TransitRouterRouteEntryNextHopResourceId |
string |
No |
The next hop instance ID of the route entry in the routing table. |
vpc-m5ent6du8deaq5***** |
| TransitRouterRouteEntryNextHopResourceType |
string |
No |
The next hop instance type of the route entry. Valid values:
|
VPC |
| TransitRouterRouteEntryOriginResourceId |
string |
No |
The origin instance ID of the route entry in the routing table. |
vpc-m5ent6du8deaq5***** |
| TransitRouterRouteEntryOriginResourceType |
string |
No |
The origin instance type of the route entry. Valid values:
|
VPC |
| PrefixListId |
string |
No |
The ID of the prefix list. |
pl-6ehtn5kqxgeyy08fi**** |
| RouteFilter |
array<object> |
No |
The filter conditions for the CIDR blocks of the route entry in the routing table. |
|
|
object |
No |
The filter condition for the CIDR blocks of the route entry in the routing table. |
||
| Key |
string |
No |
The filter condition. Valid values:
Multiple filter conditions are connected by the AND logical operator by default. A route entry must meet all filter conditions to be considered a match. You cannot specify duplicate filter conditions. |
PrefixExactMatchCidrs |
| Value |
array |
No |
The list of filter condition values. |
|
|
string |
No |
The filter value specified based on the Key. You can specify multiple filter values for a single Key. Multiple filter values are connected by the OR logical operator. A route entry is considered a match if it meets any of the filter values.
You can specify up to 500 filter values for a single filter condition.
|
192.168.1.0/24 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| NextToken |
string |
The token for the next query. Valid values:
|
fce19**** |
| RequestId |
string |
The request ID. |
C3835E5E-1504-4344-B1BB-98A4110F1079 |
| TotalCount |
integer |
The total number of entries. |
6 |
| MaxResults |
integer |
The number of entries returned per page. |
20 |
| TransitRouterRouteEntries |
array<object> |
The list of route entry information in the routing table. |
|
|
array<object> |
The route entry. |
||
| TransitRouterRouteEntryId |
string |
The ID of the route entry. Note
This parameter is returned only for statically configured routes. |
rte-oklkgwmj97z6dn**** |
| TransitRouterRouteEntryDestinationCidrBlock |
string |
The destination CIDR block of the route entry. An IPv4 CIDR block or an IPv6 CIDR block is returned. |
192.168.0.0/24 |
| TransitRouterRouteEntryType |
string |
The destination type of the route entry. Valid values:
|
Static |
| CreateTime |
string |
The creation time of the route entry. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mmZ format. The time is displayed in UTC. Note
This parameter is returned only for statically configured routes. |
2021-06-15T07:01Z |
| TransitRouterRouteEntryName |
string |
The name of the route entry. Note
This parameter is returned only for statically configured routes. |
testname |
| TransitRouterRouteEntryStatus |
string |
The status of the route entry. Valid values:
|
Active |
| TransitRouterRouteEntryNextHopType |
string |
The next hop type of the route entry. Valid values:
|
BlackHole |
| TransitRouterRouteEntryNextHopId |
string |
The ID of the next hop of the route entry. This parameter is not returned for blackhole routes. |
tr-attach-vx6iwhjr1x1j78**** |
| TransitRouterRouteEntryDescription |
string |
The description of the route entry. Note
This parameter is returned only for statically configured routes. |
CidrRoute |
| OperationalMode |
boolean |
Indicates whether the route entry can be managed. Valid values:
|
false |
| Tag |
string |
The tag of the route entry. Valid value: PermitVbr, which indicates that the route entry is propagated only to the route tables of the VBRs associated with the transit router. Note
This parameter is returned only for automatically generated routes of the transit router CIDR blocks. |
PermitVbr |
| TransitRouterRouteEntryNextHopResourceId |
string |
The next hop instance ID of the route entry in the routing table. |
vpc-m5ent6du8deaq5***** |
| TransitRouterRouteEntryNextHopResourceType |
string |
The next hop instance type of the route entry. Valid values:
|
VPC |
| TransitRouterRouteEntryOriginResourceType |
string |
The origin instance type of the route entry. Valid values:
|
VPC |
| TransitRouterRouteEntryOriginResourceId |
string |
The origin instance ID of the route entry in the routing table. |
vpc-m5ent6du8deaq5***** |
| PrefixListId |
string |
The ID of the prefix list. |
pl-k1ainl66z3527773d**** |
| PathAttributes |
object |
The path attributes of the route. |
|
| Communities |
array |
The list of community attributes of the route entry. |
|
|
string |
The community attribute value of the route entry. |
65501:1 |
|
| AsPaths |
array |
The list of AS path attributes of the route entry. |
|
|
string |
The AS path attribute value of the route entry. |
65501 |
|
| OriginInstanceId |
string |
The original instance ID that generated the routing. |
vbr-m5ent6du8deaq5***** |
| OriginInstanceType |
string |
The origin instance type that generated the route. Valid values:
|
VBR |
| OriginRouteType |
string |
The route type when the route was generated. Valid values:
|
BGP |
| Preference |
integer |
The priority of the route entry. A smaller value indicates a higher priority. |
50 |
Examples
Success response
JSON format
{
"NextToken": "fce19****",
"RequestId": "C3835E5E-1504-4344-B1BB-98A4110F1079",
"TotalCount": 6,
"MaxResults": 20,
"TransitRouterRouteEntries": [
{
"TransitRouterRouteEntryId": "rte-oklkgwmj97z6dn****",
"TransitRouterRouteEntryDestinationCidrBlock": "192.168.0.0/24",
"TransitRouterRouteEntryType": "Static",
"CreateTime": "2021-06-15T07:01Z",
"TransitRouterRouteEntryName": "testname",
"TransitRouterRouteEntryStatus": "Active",
"TransitRouterRouteEntryNextHopType": "BlackHole",
"TransitRouterRouteEntryNextHopId": "tr-attach-vx6iwhjr1x1j78****",
"TransitRouterRouteEntryDescription": "CidrRoute",
"OperationalMode": false,
"Tag": "PermitVbr",
"TransitRouterRouteEntryNextHopResourceId": "vpc-m5ent6du8deaq5*****",
"TransitRouterRouteEntryNextHopResourceType": "VPC",
"TransitRouterRouteEntryOriginResourceType": "VPC",
"TransitRouterRouteEntryOriginResourceId": "vpc-m5ent6du8deaq5*****",
"PrefixListId": "pl-k1ainl66z3527773d****",
"PathAttributes": {
"Communities": [
"65501:1"
],
"AsPaths": [
"65501"
],
"OriginInstanceId": "vbr-m5ent6du8deaq5*****\n",
"OriginInstanceType": "VBR",
"OriginRouteType": "BGP",
"Preference": 50
}
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalParam.TransitRouterRouteTableId | TransitRouterRouteTableId is illegal. | The error message returned because the route table ID of the transit router (TransitRouterRouteTableId) is invalid. |
| 400 | IllegalParam.TransitRouterRouteEntryStatus | TransitRouterRouteEntryStatus is illegal. | The error message returned because the status of the route on the transit router (TransitRouterRouteEntryStatus) is invalid. |
| 400 | IllegalParam.NextToken | NextToken is illegal. | The error message returned because the NextToken parameter is set to an invalid value. |
| 400 | ParamExclusive.RouteEntryIdsAndStatus | TransitRouterRouteEntryIds and TransitRouterRouteEntryStatus is mutually exclusive. | The error message returned because the TransitRouterRouteEntryIds and TransitRouterRouteEntryStatus parameters conflict with each other. |
| 400 | InvalidTransitRouterRouteTableId.NotFound | TransitRouterRouteTableId is not found. | The error message returned because the specified route table ID of the transit router does not exist. |
| 400 | FilterKeyDuplicated.RouteFilter | The keys in RouteFilter are duplicated. | The error message returned because RouteFilter contains duplicate key values. |
| 400 | InvalidFilterKey | The key in filter is invalid. | The key in filter is invalid. |
| 400 | IllegalParam.TransitRouterRouteEntryNextHopType | TransitRouterRouteEntryNextHopType is invalid. | The error message returned because the TransitRouterRouteEntryNextHopType parameter is set to an invalid value. |
| 400 | IllegalParam.TransitRouterRouteEntryNextHopAttachmentId | TransitRouterRouteEntryNextHopAttachmentId is invalid. | The error message returned because TransitRouterRouteEntryNextHopAttachmentId is set to an invalid value. |
| 400 | IllegalParam.TransitRouterRouteEntryNextHopResourceId | TransitRouterRouteEntryNextHopResourceId is invalid. | The error message returned because TransitRouterRouteEntryNextHopResourceId is set to an invalid value. |
| 400 | IllegalParam.TransitRouterRouteEntryNextHopResourceType | TransitRouterRouteEntryNextHopResourceType is invalid. | The error message returned because TransitRouterRouteEntryNextHopResourceType is set to an invalid value. |
| 400 | IllegalParam.TransitRouterRouteEntryOriginResourceId | TransitRouterRouteEntryOriginResourceId is invalid. | The error message returned because TransitRouterRouteEntryOriginResourceId is set to an invalid value. |
| 400 | IllegalParam.TransitRouterRouteEntryOriginResourceType | TransitRouterRouteEntryOriginResourceType is invalid. | The error message returned because TransitRouterRouteEntryOriginResourceType is set to an invalid value. |
| 400 | IllegalParam.TransitRouterRouteEntryType | TransitRouterRouteEntryType is invalid. | The error message returned because TransitRouterRouteEntryType is set to an invalid value. |
| 400 | IllegalParam.PrefixExactMatchCidr | PrefixExactMatchCidr is invalid. | The error message returned because PrefixExactMatchCidr is set to an invalid value. |
| 400 | IllegalParam.LongestPrefixMatchCidr | LongestPrefixMatchCidr is invalid. | The error message returned because LongestPrefixMatchCidr is set to an invalid value. |
| 400 | IllegalParam.SubnetOfMatchCidr | SubnetOfMatchCidr is invalid. | The error message returned because SubnetOfMatchCidr is set to an invalid value. |
| 400 | IllegalParam.SupernetOfMatchCidr | SupernetOfMatchCidr is invalid. | The error message returned because SupernetOfMatchCidr is set to an invalid value. |
| 400 | InvalidName | Name is invalid. | The error message returned because the specified name is invalid. |
| 400 | IllegalParam.TextMatchCidr | The TextMatchCidr specified in the parameter is illegal. | The TextMatchCidr specified in the parameter is illegal. |
| 400 | ResourceNotFound.PrefixlistAssociation | The prefix list is not associated with this route table. | The error message returned because the specified prefix list is not associated with a route table. |
| 400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
| 404 | InvalidRouteTableId.NotFound | The specified RouteTableId is not found. | The specified route table ID does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.