Queries the details of 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 the prefix lists. Valid values of N: 1 to 100. You can query up to 100 prefix lists at a time. |
pl-m5estsqsdqwg88hjf**** |
|
string |
No |
The instance ID of the prefix list. |
pl-0b7hwu67**** |
|
| NextToken |
string |
No |
The token for the next query. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
No |
The number of entries to return on each 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 list of tags. |
|
|
object |
No |
The list of tags. |
||
| Key |
string |
No |
The tag key of the resource. You can specify up to 20 tag keys. If you specify this parameter, you cannot specify an empty string. A tag key can be up to 128 characters in length. It cannot start with |
FinanceDept |
| Value |
string |
No |
The tag value of the resource. You can specify up to 20 tag values. If you specify this parameter, you can specify an empty string. A tag value can be up to 128 characters in length. It cannot start with |
FinanceJoshua |
| RegionId |
string |
Yes |
The region ID of the prefix list. You can call the DescribeRegions operation to query region IDs. |
cn-hangzhou |
| PrefixListName |
string |
No |
The name of the prefix list. 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 |
The token for the next query. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| TotalCount |
integer |
The total number of prefix lists returned. |
1 |
| MaxResults |
integer |
The number of entries to return on each page. Valid values: 1 to 100. Default value: 20. |
20 |
| PrefixLists |
array<object> |
The details of the prefix lists. |
|
|
array<object> |
The details of the prefix lists. |
||
| 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. The time is displayed in UTC and follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. |
2022-07-12T14:22:32Z |
| CidrBlocks |
array |
The Classless Inter-Domain Routing block information of the prefix list. |
|
|
string |
The Classless Inter-Domain Routing block information of the prefix list. |
100.115.XX.XX/24 |
|
| ShareType |
string |
The sharing type of the prefix list. Valid values:
|
Shared |
| MaxEntries |
integer |
The maximum number of entries for Classless Inter-Domain Routing in the prefix list. |
10 |
| Status |
string |
The status of the prefix list. Valid values:
|
Created |
| OwnerId |
string |
The Alibaba Cloud account to which the prefix list belongs. |
1210123456123456 |
| PrefixListStatus |
string |
The status of the prefix list. Valid values:
Note
This parameter has the same meaning and valid values as Status. |
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 list of tags. |
|
|
object |
The list of tags. |
||
| Key |
string |
The tag key. |
FinanceDept |
| Value |
string |
The tag value. |
FinanceJoshua |
| PrefixListType |
string |
The type of the prefix list. |
Custom |
Examples
Success response
JSON format
{
"RequestId": "DF72F7BB-5DFA-529C-887E-B0BB70D89C4F",
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"TotalCount": 1,
"MaxResults": 20,
"PrefixLists": [
{
"PrefixListId": "pl-m5estsqsdqwg88hjf****",
"PrefixListName": "test",
"PrefixListDescription": "Created with oss service by system.",
"IpVersion": "IPV4",
"CreationTime": "2022-07-12T14:22:32Z",
"CidrBlocks": [
"100.115.XX.XX/24"
],
"ShareType": "Shared",
"MaxEntries": 10,
"Status": "Created",
"OwnerId": "1210123456123456",
"PrefixListStatus": "Created",
"RegionId": "cn-hangzhou",
"ResourceGroupId": "rg-bp67acfmxazb4ph****",
"Tags": [
{
"Key": "FinanceDept",
"Value": "FinanceJoshua"
}
],
"PrefixListType": "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.