All Products
Search
Document Center

Cloud Enterprise Network:PublishRouteEntries

Last Updated:Aug 12, 2026

Cloud Enterprise Network (CEN) supports the publish route entry feature. You can publish routing entries from a VPC or VBR that is loaded into CEN to CEN by calling the PublishRouteEntries operation. If no route conflict exists, other network instances in CEN can learn the published routes.

Operation description

The following table lists the default publish status of each type of route entry in CEN. You can call the PublishRouteEntries operation to publish route entries that are not published to CEN.

Route entryInstance to which the route entry belongsPublished to CEN by default
Route entry that points to an ECS instanceVPCNo
Route entry that points to a VPN gatewayVPCNo
Route entry that points to a high availability (HA) virtual IP addressVPCNo
Route entry that points to a router interfaceVPCNo
Route entry that points to an elastic network interface (ENI)VPCNo
Route entry that points to an IPv6 gatewayVPCNo
Route entry that points to a NAT gatewayVPCNo
VPC system routeVPCYes
Route entry that points to an on-premises data centerVBRYes
BGP routeVBRYes

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

cen:PublishRouteEntries

update

*CenInstance

acs:cen:*:{#accountId}:ceninstance/{#ceninstanceId}

*virtualborderrouter

acs:vpc:*:{#accountId}:virtualborderrouter/{#virtualborderrouterId}

*VPC

acs:vpc:*:{#accountId}:vpc/{#vpcId}

None None

Request parameters

Parameter

Type

Required

Description

Example

CenId

string

Yes

The CEN instance ID.

cen-7qthudw0ll6jmc****

ChildInstanceId

string

Yes

The network instance ID.

vpc-rj9gt5nll27onu****

ChildInstanceType

string

Yes

The type of the network instance. Valid values:

  • VPC: virtual private cloud.

Valid values:

  • VPC :

    VPC

VPC

ChildInstanceRegionId

string

Yes

The region ID of the network instance.

You can call the DescribeChildInstanceRegions operation to query region IDs.

us-west-1

ChildInstanceRouteTableId

string

Yes

The ID of the route table of the network instance.

vtb-bp174d1gje7****

DestinationCidrBlock

string

Yes

The destination CIDR block of the route entry to be published.

172.16.1.0/24

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

FBDB18D8-E91E-4978-8D6C-6E2E3EE10133

Examples

Success response

JSON format

{
  "RequestId": "FBDB18D8-E91E-4978-8D6C-6E2E3EE10133"
}

Error codes

HTTP status code

Error code

Error message

Description

400 ParameterIllegal.AliUid The parameter of aliUid is illegal.
400 InvalidOperation.UnsupportnexthopType The nexthop type is unsupported The error message returned because the next hop type does not support this operation.
400 InvalidOperation.NotFoundRoute The specified route does not exist. The error message returned because the route does not exist.
400 ParameterIllegal.CenInstanceId The parameter of CEN instance id is illegal.
400 ParameterIllegal.ChildInstanceRegionId The parameter of child instance region id is illegal.
400 ParameterIllegal.ChildInstanceType The parameter of child instance type is illegal.
400 InvalidOperation.UnsupportRouteTableType The route table type is unsupported The error message returned because the specified route table type does not support this operation.
400 InvalidParameter Invalid parameter. The error message returned because the parameter is set to an invalid value.
400 Unauthorized The AccessKeyId is unauthorized. The error message returned because you do not have the permissions to perform this operation.
400 InvalidParameter.CenId The specified parameter CenId is invalid.
400 InvalidParameter.ChildInstanceRouteTableId The specified parameter ChildInstanceRouteTableId is invalid. The parameter ChildInstanceRouteTableId entered is illegal.
404 Instance.NotExist The instance is not exist. The error message returned because the specified instance does not exist.
409 InvalidOperation.ChildInstanceStatus The child-instance is not in a valid state for the operation.
409 InvalidOperation.CenInstanceStatus The CEN instance is not in a valid state for the operation. The error message returned because the status of the CEN instance does not support this operation.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.