Queries the prefix list associations for the route table of an Enterprise Edition transit router.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:ListTransitRouterPrefixListAssociation |
get |
*TransitRouterRouteTable
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the transit router. You can call the DescribeChildInstanceRegions operation to obtain the region ID. |
cn-hangzhou |
| TransitRouterId |
string |
Yes |
The ID of the transit router. |
tr-6ehx7q2jze8ch5ji0**** |
| TransitRouterTableId |
string |
No |
The ID of the route table of the transit router. |
vtb-6ehgc262hr170qgyc**** |
| PrefixListId |
string |
No |
The ID of the prefix list. |
pl-6ehtn5kqxgeyy08fi**** |
| OwnerUid |
integer |
No |
The ID of the Alibaba Cloud account to which the prefix list belongs. |
1210123456123456 |
| 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: 100. Default value: 10. |
10 |
| NextHop |
string |
No |
The ID of the next hop connection. Note
If you want to query information about the prefix list that is used to generate blackhole routes, set this parameter to BlackHole. |
tr-attach-flbq507rg2ckrj**** |
| NextHopType |
string |
No |
The next hop type. Valid values:
|
VPC |
| NextHopInstanceId |
string |
No |
The ID of the network instance that is associated with the next hop connection. |
vpc-6eh7fp9hdqa2wv85t**** |
| Status |
string |
No |
The status of the prefix list.
|
Active |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
6005CA94-676E-1FEE-985E-7602EFAADD6A |
| TotalCount |
integer |
The total number of entries returned. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| PageNumber |
integer |
The page number. |
1 |
| PrefixLists |
array<object> |
The information about the prefix lists. |
|
|
object |
The information about the prefix list. |
||
| PrefixListId |
string |
The ID of the prefix list. |
pl-6ehtn5kqxgeyy08fi**** |
| OwnerUid |
integer |
The ID of the Alibaba Cloud account to which the prefix list belongs. |
1210123456123456 |
| Status |
string |
The status of the prefix list.
|
Active |
| NextHop |
string |
The ID of the next hop connection. Note
If BlackHole is returned, it indicates that all CIDR blocks in the prefix list are blackhole routes. All traffic destined for the CIDR blocks in the prefix list is dropped. |
tr-attach-flbq507rg2ckrj**** |
| NextHopInstanceId |
string |
The ID of the network instance that is associated with the next hop connection. |
vpc-6eh7fp9hdqa2wv85t**** |
| NextHopType |
string |
The next hop type.
|
VPC |
| TransitRouterTableId |
string |
The ID of the route table of the transit router. |
vtb-6ehgc262hr170qgyc**** |
| TransitRouterId |
string |
The ID of the transit router. |
tr-6ehx7q2jze8ch5ji0**** |
Examples
Success response
JSON format
{
"RequestId": "6005CA94-676E-1FEE-985E-7602EFAADD6A",
"TotalCount": 1,
"PageSize": 10,
"PageNumber": 1,
"PrefixLists": [
{
"PrefixListId": "pl-6ehtn5kqxgeyy08fi****",
"OwnerUid": 1210123456123456,
"Status": "Active",
"NextHop": "tr-attach-flbq507rg2ckrj****",
"NextHopInstanceId": "vpc-6eh7fp9hdqa2wv85t****",
"NextHopType": "VPC",
"TransitRouterTableId": "vtb-6ehgc262hr170qgyc****",
"TransitRouterId": "tr-6ehx7q2jze8ch5ji0****"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalParam.Region | The specified Region is invalid. | The error message returned because the specified region is invalid. |
| 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.