All Products
Search
Document Center

Virtual Private Cloud:ListVpcPublishedRouteEntries

Last Updated:Jan 07, 2026
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Query the route publishing status

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
vpc:ListVpcPublishedRouteEntrieslist
*RouteTable
acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the region where the instance is located.

cn-hangzhou
RouteTableIdstringYes

The ID of the route table.

vtb-bp145q7glnuzd****
DestinationCidrBlockstringNo

The destination CIDR block of the route entry, supporting both IPv4 and IPv6 segments.

47.100.XX.XX/16
TargetTypestringYes

The type of the route publishing target.

ECR
TargetInstanceIdstringNo

The ID of the route publishing target instance.

ecr-dhw2xsds5****
MaxResultsintegerNo

The number of entries to display per batch query. Range: 1~500, default value is 50.

50
NextTokenstringNo

Indicates whether there is a token for the next query. Values:

  • If NextToken is empty, it means there is no next query.
  • If NextToken has a return value, this value indicates the token for the start of the next query.
FFmyTO70tTpLG6I3FmYAXGKPd****

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

Request ID.

1D0971B2-A35A-42C1-A44C-E91360C36C0B
NextTokenstring

Indicates whether there is a token for the next query. Values:

  • If NextToken is empty, it means there is no next query.
  • If NextToken has a return value, this value indicates the token for the start of the next query.
FFmyTO70tTpLG6I3FmYAXGKPd****
RouteEntriesarray<object>

List of route entry publishing status information.

RouteEntryobject

List of route entry publishing status information.

RouteEntryIdstring

The ID of the route entry.

rte-bp1mnnr2al0naomnpv****
DestinationCidrBlockstring

The destination CIDR block of the route entry.

10.0.0.0/24
RouteTableIdstring

The ID of the route table.

vtb-2ze3jgygk9bmsj23s****
RoutePublishTargetsarray<object>

List of route entry publishing status information in the publishing targets.

RoutePublishTargetobject

List of route entry publishing status information in the publishing targets.

PublishStatusstring

The publishing status of the route entry in the publishing target.

Enumeration Value:
  • NonPublished: NonPublished.
  • Published: Published.
Published
PublishTargetTypestring

The type of the route publishing target.

ECR
PublishTargetInstanceIdstring

The ID of the route publishing target instance.

ecr-xvuqdfma6x57ei****

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
400ResourceNotAssociated.TargetInstanceThe target instance is not associated with vpc.The destination instance of the route is not associated with the VPC.
400ResourceNotFound.RouteTableThe specified resource gatewayRouteTable is not found.The gateway route table does not exist.
400IllegalParam.NextTokenThe specified NextToken is invalid.The specified NextToken is invalid.
400IllegalParam.NextTokenExpiredThe specified NextToken is invalid.The specified NextToken is invalid.
400IllegalParam.TargetTypeThe parameter of TargetType is illegal.The parameter TargetType is illegal.
400OperationDenied.UnexpectedRouteTableOperation is denied because only system route table supports publishing route entries.The operation was denied because only the system routing table supports publishing routes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-11-27The Error code has changedView Change Details
2024-09-13The Error code has changed. The response structure of the API has changedView Change Details