Queries the details of a prefix list, including the name, address family, maximum number of entries, and details of the entries.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribePrefixListAttributes |
get |
*PrefixList
|
None | None |
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 |
| RegionId |
string |
Yes |
The region ID. You can call the DescribeRegions operation to query the most recent region list. |
cn-chengdu |
| PrefixListId |
string |
Yes |
The ID of the prefix list. |
pl-x1j1k5ykzqlixdcy**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| CreationTime |
string |
The time when the prefix list was created. |
2021-02-20T07:11Z |
| MaxEntries |
integer |
The maximum number of entries in the prefix list. |
10 |
| RequestId |
string |
The request ID. |
38793DB8-A4B2-4AEC-BFD3-111234E9188D |
| Description |
string |
The description of the prefix list. |
This is description. |
| AddressFamily |
string |
The IP address family of the prefix list. Valid values:
|
IPv4 |
| PrefixListName |
string |
The name of the prefix list. |
PrefixListNameSample |
| PrefixListId |
string |
The ID of the prefix list. |
pl-x1j1k5ykzqlixdcy**** |
| Entries |
object |
||
| Entry |
array<object> |
Details about the entries in the prefix list. |
|
|
object |
|||
| Description |
string |
The description in entry N. |
Description Sample 01 |
| Cidr |
string |
The CIDR block in entry N. |
192.168.1.0/24 |
Examples
Success response
JSON format
{
"CreationTime": "2021-02-20T07:11Z",
"MaxEntries": 10,
"RequestId": "38793DB8-A4B2-4AEC-BFD3-111234E9188D",
"Description": "This is description.",
"AddressFamily": "IPv4",
"PrefixListName": "PrefixListNameSample",
"PrefixListId": "pl-x1j1k5ykzqlixdcy****",
"Entries": {
"Entry": [
{
"Description": "Description Sample 01",
"Cidr": "192.168.1.0/24"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidPrefixListId.NotFound | The specified prefix list was not found. | The prefix list does not exist. |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist. | The specified region ID does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.