Queries prefix lists.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ListPrefixLists |
list |
PrefixList
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PrefixListIds |
array |
No |
The IDs of prefix lists to query. Valid values of N: 1 to 100. You can query up to 100 prefix lists at a time. |
pl-m5estsqsdqwg88hjf**** |
|
string |
No |
The ID of the prefix list. |
pl-0b7hwu67**** |
|
| NextToken |
string |
No |
The pagination token for the next request to retrieve a new page of results. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
No |
The number of entries per page. Valid values: 1 to 100. Default value: 20. |
20 |
| ResourceGroupId |
string |
No |
The ID of the resource group to which the prefix list belongs. |
rg-bp67acfmxazb4ph**** |
| Tags |
array<object> |
No |
The tags. |
|
|
object |
No |
|||
| Key |
string |
No |
The tag key. You can specify up to 20 tag keys. It cannot be an empty string. The key can be up to 64 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter but cannot start with |
FinanceDept |
| Value |
string |
No |
The tag value. You can specify up to 20 tag values. It can be an empty string. The tag value can be up to 128 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). The key must start with a letter but cannot start with |
FinanceJoshua |
| RegionId |
string |
Yes |
The ID of the region where you want to query prefix lists. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| PrefixListName |
string |
No |
The name of the prefix list to query. The name must be 1 to 128 characters in length and cannot start with |
name |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The request ID. |
||
| RequestId |
string |
The request ID. |
DF72F7BB-5DFA-529C-887E-B0BB70D89C4F |
| NextToken |
string |
A pagination token. Use it in the next request to retrieve a new page of results. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| TotalCount |
integer |
The total number of entries returned. |
1 |
| MaxResults |
integer |
The number of entries per page. Valid values: 1 to 100. Default value: 20. |
20 |
| PrefixLists |
array<object> |
The prefix lists. |
|
|
array<object> |
|||
| PrefixListId |
string |
The ID of the prefix list. |
pl-m5estsqsdqwg88hjf**** |
| PrefixListName |
string |
The name of the prefix list. |
test |
| PrefixListDescription |
string |
The description of the prefix list. |
Created with oss service by system. |
| IpVersion |
string |
The IP version of the prefix list. Valid values:
|
IPV4 |
| CreationTime |
string |
The time when the prefix list was created. |
2022-07-12T14:22:32Z |
| CidrBlocks |
array |
The CIDR block specified in the prefix list. |
|
|
string |
The CIDR block specified in the prefix list. |
100.115.XX.XX/24 |
|
| ShareType |
string |
Whether the prefix list is shared. Valid values:
|
Shared |
| MaxEntries |
integer |
The maximum number of CIDR blocks allowed in the prefix list. |
10 |
| Status |
string |
The status of the prefix list. Valid values:
|
Created |
| OwnerId |
string |
The Alibaba Cloud account that owns the prefix list. |
1210123456123456 |
| PrefixListStatus |
string |
The status of the prefix list. Valid values:
Note
This parameter is the same as the Status parameter. |
Created |
| RegionId |
string |
The region ID of the prefix list. |
cn-hangzhou |
| ResourceGroupId |
string |
The ID of the resource group to which the prefix list belongs. |
rg-bp67acfmxazb4ph**** |
| Tags |
array<object> |
The tags. |
|
|
object |
|||
| Key |
string |
The tag key. |
FinanceDept |
| Value |
string |
The tag value. |
FinanceJoshua |
| PrefixListType |
string |
The type of the prefix list. |
Custom |
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalParam.NextToken | The specified NextToken is invalid. | The specified NextToken is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.