Queries the network instances that are associated with a prefix list.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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:

  • If this is your first query and no next queries are to be sent, ignore this parameter.
  • If a next query is to be performed, set the value to the NextToken value returned in the last call to the ListListenerCertificates operation.
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:

  • If no value is returned for NextToken, no next queries are sent.
  • If NextToken is not empty, the value indicates the token that is used for the next query.
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:

  • vpcRouteTable :VPC route table.
  • trRouteTable: route table of a transit router.
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:

  • Created
  • ModifyFailed
  • Creating
  • Modifying
  • Deleting
  • Deleted
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.