Queries the information of prefix lists.
Operation description
You can specify the AddressFamily
, PrefixListId.N
, and PrefixListName
request parameters in the request. Specified parameters have logical AND relations. Only the parameters that you set are included in the filter conditions.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID. You can call the DescribeRegions operation to query the most recent region list. | cn-chengdu |
PrefixListName | string | No | The name of the prefix list. | PrefixListNameSample |
NextToken | string | No | The pagination token that is used in the request to retrieve a new page of results. Set the value to the | AAAAAdDWBF2**** |
MaxResults | integer | No | The number of entries per page. Valid values: 1 to 100. Default value: 10. | 10 |
AddressFamily | string | No | The IP address family. Valid values:
This parameter is empty by default, which indicates that all prefix lists are queried. | IPv4 |
PrefixListId | array | No | The IDs of prefix lists. Valid values of N: 0 to 100. | |
string | No | The ID of prefix list N. Valid values of N: 0 to 100. | pl-x1j1k5ykzqlixdcy**** | |
ResourceGroupId | string | No | The ID of the resource group to which the prefix list belongs. | rg-bp67acfmxazb4p**** |
Tag | array<object> | No | The tags of the prefix list. | |
object | No | Tag N of the prefix list. | ||
Key | string | No | The key of tag N of the prefix list. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length. It cannot start with aliyun or acs: and cannot contain | TestKey |
Value | string | No | The value of tag N of the prefix list. Valid values of N: 1 to 20. The tag value can be an empty string. The tag value can be up to 128 characters in length and cannot contain | TestValue |
Response parameters
Examples
Sample success responses
JSON
format
{
"NextToken": "AAAAAdDWBF2****",
"RequestId": "38793DB8-A4B2-4AEC-BFD3-111234E9188D",
"PrefixLists": {
"PrefixList": [
{
"CreationTime": "2021-02-20T07:11Z",
"AssociationCount": 1,
"MaxEntries": 20,
"Description": "This is description.",
"AddressFamily": "IPv4",
"PrefixListName": "PrefixListNameSample",
"PrefixListId": "pl-x1j1k5ykzqlixdcy****",
"Tags": {
"Tag": [
{
"TagValue": "TestKey",
"TagKey": "TestValue\n"
}
]
},
"ResourceGroupId": "rg-bp67acfmxazb4p****\n"
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParameter | %s | The specified parameter is invalid. |
400 | LimitExceed.PrefixListId | The specified number of PrefixListId exceeds the limit. | The number of specified prefix list IDs exceeds the upper limit. |
404 | InvalidRegionId.NotFound | The specified RegionId does not exist. | The specified region ID does not exist. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2025-04-21 | The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
2025-01-02 | API Description Update. The Error code has changed | View Change Details |
2023-11-13 | The Error code has changed | View Change Details |