Queries the network instances that are associated with a prefix list.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetVpcPrefixListAssociations | The operation that you want to perform. Set the value to GetVpcPrefixListAssociations. |
PrefixListId | String | Yes | pl-0b7hwu67**** | The ID of the prefix list that you want to query. |
NextToken | String | No | FFmyTO70tTpLG6I3FmYAXGKPd**** | The token that determines the start point of the next query. Valid values:
|
MaxResults | Long | No | 20 | The number of entries to return on each page. Valid values: 1 to 100. Default value: 20. |
RegionId | String | Yes | cn-hangzhou | The region ID of the prefix list. You can call the DescribeRegions operation to query the most recent region list. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 4EC47282-1B74-4534-BD0E-403F3EE64CAF | The ID of the request. |
NextToken | String | FFmyTO70tTpLG6I3FmYAXGKPd**** | The token that determines the start point of the next query. Valid values:
|
TotalCount | Long | 1 | The total number of entries returned. |
Count | Long | 1 | The number of entries returned. |
PrefixListAssociation | Array of PrefixListAssociations | The information about the network instances that are associated with the prefix list. |
|
PrefixListId | String | pl-0b7hwu67**** | The ID of the prefix list. |
ResourceId | String | vtb-bp1drpcfz9srr393h**** | The ID of the associated resource. |
ResourceType | String | vpcRouteTable | The type of the associated resource. Valid values:
|
OwnerId | String | 153460731706**** | The ID of the Alibaba Cloud account to which the prefix list belongs. |
Status | String | Success | The status of the prefix list. Valid values:
|
Reason | String | failed | The reason why the association failed. |
RegionId | String | cn-hangzhou | The region ID of the prefix list. |
ResourceUid | String | 132193271328**** | The ID of the Alibaba Cloud account to which the resource associated with the prefix list belongs. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=GetVpcPrefixListAssociations
&PrefixListId=pl-0b7hwu67****
&NextToken=FFmyTO70tTpLG6I3FmYAXGKPd****
&MaxResults=20
&RegionId=cn-hangzhou
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<GetVpcPrefixListAssociationsResponse>
<RequestId>4EC47282-1B74-4534-BD0E-403F3EE64CAF</RequestId>
<NextToken>FFmyTO70tTpLG6I3FmYAXGKPd****</NextToken>
<TotalCount>1</TotalCount>
<Count>1</Count>
<PrefixListAssociation>
<PrefixListId>pl-0b7hwu67****</PrefixListId>
<ResourceId>vtb-bp1drpcfz9srr393h****</ResourceId>
<ResourceType>vpcRouteTable</ResourceType>
<OwnerId>153460731706****</OwnerId>
<Status>Success</Status>
<Reason>failed</Reason>
<RegionId>cn-hangzhou</RegionId>
<ResourceUid>132193271328****</ResourceUid>
</PrefixListAssociation>
</GetVpcPrefixListAssociationsResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"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****"
} ]
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | IllegalParam.NextToken | The specified NextToken is invalid. | The error message returned because the specified NextToken value is invalid. |
For a list of error codes, see Service error codes.