All Products
Search
Document Center

Virtual Private Cloud:GetVpcPrefixListEntries

Last Updated:Aug 28, 2026

Queries entries in a specified prefix list.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

PrefixListId

string

Yes

The prefix list ID.

pl-0b7hwu67****

NextToken

string

No

The pagination token for the next request. Valid values:

  • Not required for the first request.

  • Use the token returned from the previous query.

FFmyTO70tTpLG6I3FmYAXGKPd****

MaxResults

integer

No

The number of entries per page. Valid values: 1 to 100. Default: 20.

20

RegionId

string

Yes

The region ID of the prefix list.

Call the DescribeRegions operation to query available regions.

cn-hangzhou

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID.

4EC47282-1B74-4534-BD0E-403F3EE64CAF

NextToken

string

The pagination token for subsequent requests. Valid values:

  • If NextToken is empty, no next page exists.

  • If NextToken returns a value, use it to retrieve the next page.

FFmyTO70tTpLG6I3FmYAXGKPd****

TotalCount

integer

The total number of entries returned.

1

Count

integer

The number of entries returned.

1

PrefixListEntry

array<object>

The prefix list entries.

object

PrefixListId

string

The prefix list ID.

pl-0b7hwu67****

Cidr

string

The CIDR blocks in the prefix list.

192.168.0.0/16

Description

string

The description of the prefix list.

description

RegionId

string

The region ID.

cn-hangzhou

Error codes

HTTP status code

Error code

Error message

Description

400 IllegalParam.NextToken The specified NextToken is invalid. The specified NextToken is invalid.
400 ResourceNotFound.PrefixList The specified resource of prefixList is not found. The prefix list does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.