Queries the prefix lists that are associated with an Enterprise Edition transit router.
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 |
---|---|---|---|---|
cen:ListTransitRouterPrefixListAssociation | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region where the transit router is deployed. You can call the DescribeChildInstanceRegions operation to query the most recent region list. | 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 | long | 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. Note
Set the value to BlackHole if you want to query the prefix list that generates blackhole routes.
| tr-attach-flbq507rg2ckrj**** |
NextHopType | string | No | The type of the next hop. Valid values:
| VPC |
NextHopInstanceId | string | No | The ID of the network instance associated with the next hop connection. | vpc-6eh7fp9hdqa2wv85t**** |
Status | string | No | The status of the prefix list. Valid values:
| Active |
Response parameters
Examples
Sample success responses
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. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2022-10-27 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2022-09-23 | The Error code has changed. The response structure of the API has changed | View Change Details |