Queries the associations of a prefix list by calling the GetVpcPrefixListAssociations operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:GetVpcPrefixListAssociations |
get |
*PrefixList
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PrefixListId |
string |
Yes |
The instance ID of the prefix list to query. |
pl-0b7hwu67**** |
| NextToken |
string |
No |
The pagination token. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
No |
The number of entries per page in a paged query. Valid values: 1 to 100. Default value: 20. |
20 |
| RegionId |
string |
Yes |
The region ID of the prefix list to query. You can call the DescribeRegions operation to query the region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
4EC47282-1B74-4534-BD0E-403F3EE64CAF |
| NextToken |
string |
The pagination token. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| TotalCount |
integer |
The total number of entries returned. |
1 |
| Count |
integer |
The number of entries returned. |
1 |
| PrefixListAssociation |
array<object> |
The association information of the prefix list. |
|
|
object |
The association information of the prefix list. |
||
| PrefixListId |
string |
The instance ID of the prefix list. |
pl-0b7hwu67**** |
| ResourceId |
string |
The ID of the associated resource. |
vtb-bp1drpcfz9srr393h**** |
| ResourceType |
string |
The type of the associated resource. Valid values:
|
vpcRouteTable |
| OwnerId |
string |
The ID of the Alibaba Cloud account that owns the prefix list. |
153460731706**** |
| Status |
string |
The association status of the prefix list. Valid values:
|
Success |
| Reason |
string |
The reason for the association failure. |
failed |
| RegionId |
string |
The region ID of the prefix list. |
cn-hangzhou |
| ResourceUid |
string |
The ID of the Alibaba Cloud account that owns the resource associated with the prefix list. |
132193271328**** |
| CidrList |
string |
The list of CIDR blocks in the prefix list that are effective for the associated resource. |
192.168.0.0/16 |
Examples
Success response
JSON format
{
"RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF",
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"TotalCount": 1,
"Count": 1,
"PrefixListAssociation": [
{
"PrefixListId": "pl-0b7hwu67****",
"ResourceId": "vtb-bp1drpcfz9srr393h****",
"ResourceType": "vpcRouteTable",
"OwnerId": "153460731706****",
"Status": "Success",
"Reason": "failed",
"RegionId": "cn-hangzhou",
"ResourceUid": "132193271328****",
"CidrList": "192.168.0.0/16"
}
]
}
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.