All Products
Search
Document Center

Virtual Private Cloud:ListVpcPublishedRouteEntries

Last Updated:Aug 28, 2026

Queries the publishing status of VPC route entries.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

vpc:ListVpcPublishedRouteEntries

list

*RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID.

cn-hangzhou

RegionId

string

No

The region ID.

cn-hangzhou

RouteTableId

string

Yes

The ID of the route table.

vtb-bp145q7glnuzd****

DestinationCidrBlock

string

No

The destination CIDR block of the route entry. Supports IPv4 and IPv6 CIDR blocks.

47.100.XX.XX/16

TargetType

string

Yes

The publishing target type.

ECR

TargetInstanceId

string

No

The publishing target instance ID.

ecr-dhw2xsds5****

MaxResults

integer

No

The number of entries per page. Valid values: 1 to 500. Default value: 50.

50

NextToken

string

No

The pagination token for the next query.

  • If NextToken is empty, no more results exist.

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

FFmyTO70tTpLG6I3FmYAXGKPd****

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

1D0971B2-A35A-42C1-A44C-E91360C36C0B

NextToken

string

The pagination token for the next query.

  • If NextToken is empty, no more results exist.

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

FFmyTO70tTpLG6I3FmYAXGKPd****

RouteEntries

array<object>

The route entries and their publishing status.

array<object>

The route entries and their publishing status.

RouteEntryId

string

The ID of the route entry.

rte-bp1mnnr2al0naomnpv****

DestinationCidrBlock

string

The destination CIDR block of the route entry.

10.0.0.0/24

RouteTableId

string

The ID of the route table.

vtb-2ze3jgygk9bmsj23s****

RoutePublishTargets

array<object>

The publishing targets and their status.

object

The publishing targets and their status.

PublishStatus

string

The route entry publishing status.

Valid values:

  • NonPublished :

    NonPublished

  • Published :

    Published

Published

PublishTargetType

string

The publishing target type.

ECR

PublishTargetInstanceId

string

The publishing target instance ID.

ecr-xvuqdfma6x57ei****

Examples

Success response

JSON format

{
  "RequestId": "1D0971B2-A35A-42C1-A44C-E91360C36C0B",
  "NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
  "RouteEntries": [
    {
      "RouteEntryId": "rte-bp1mnnr2al0naomnpv****",
      "DestinationCidrBlock": "10.0.0.0/24",
      "RouteTableId": "vtb-2ze3jgygk9bmsj23s****",
      "RoutePublishTargets": [
        {
          "PublishStatus": "Published",
          "PublishTargetType": "ECR",
          "PublishTargetInstanceId": "ecr-xvuqdfma6x57ei****"
        }
      ]
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 ResourceNotAssociated.TargetInstance The target instance is not associated with vpc.
400 ResourceNotFound.RouteTable The specified resource gatewayRouteTable is not found. The gateway route table does not exist.
400 IllegalParam.NextToken The specified NextToken is invalid. The specified NextToken is invalid.
400 IllegalParam.NextTokenExpired The specified NextToken is invalid. The specified NextToken is invalid.
400 IllegalParam.TargetType The parameter of TargetType is illegal. The parameter TargetType is illegal.
400 OperationDenied.UnexpectedRouteTable Operation is denied because only system route table supports publishing route entries. The operation was denied because only the system routing table supports publishing routes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.