Queries information about prefix lists associated with an Enterprise Edition transit router route table.
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 instance. You can call the DescribeChildInstanceRegions operation to obtain the region ID. |
cn-hangzhou |
| TransitRouterId |
string |
Yes |
The transit router instance ID. |
tr-6ehx7q2jze8ch5ji0**** |
| TransitRouterTableId |
string |
No |
The ID of the transit router route table. |
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 page number of the list to query. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page for a paged query. Maximum value: 100. Default value: 10. |
10 |
| NextHop |
string |
No |
The ID of the next hop connection. Note
To query information about a prefix list that generates blackhole routes, set this parameter to BlackHole. |
tr-attach-flbq507rg2ckrj**** |
| NextHopType |
string |
No |
The next hop type. Valid values:
|
VPC |
| NextHopInstanceId |
string |
No |
The network instance ID associated with the next hop connection. |
vpc-6eh7fp9hdqa2wv85t**** |
| Status |
string |
No |
The status of the prefix list.
|
Active |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
6005CA94-676E-1FEE-985E-7602EFAADD6A |
| TotalCount |
integer |
The total number of entries that match the query conditions. |
1 |
| PageSize |
integer |
The number of entries per page in a paged query. |
10 |
| PageNumber |
integer |
The page number of the returned page. |
1 |
| PrefixLists |
array<object> |
The information about the prefix lists. |
|
|
object |
The information about the prefix lists. |
||
| 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 the value is BlackHole, all CIDR blocks in the prefix list are blackhole routes, and all traffic destined for the CIDR blocks in the prefix list is dropped. |
tr-attach-flbq507rg2ckrj**** |
| NextHopInstanceId |
string |
The network instance ID associated with the next hop connection. |
vpc-6eh7fp9hdqa2wv85t**** |
| NextHopType |
string |
The next hop type.
|
VPC |
| TransitRouterTableId |
string |
The ID of the transit router route table. |
vtb-6ehgc262hr170qgyc**** |
| TransitRouterId |
string |
The transit router instance ID. |
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.