edit-icon download-icon


Last Updated: Apr 09, 2018


Delete a router entry from a route table.

Note the following before deleting a router entry:

  • You can only delete a router entry in the available status.

  • You cannot delete a router entry of a VPC that is creating or deleting a VSwitch or route entry.

Request parameters

Name Type Required Description
Action String Yes

The action to perform.

Valid value: DeleteRouteEntry

RouteTableId String Yes The ID of the route table to which the route entry belongs.
DestinationCidrBlock String Yes The destination CIDR block of the route entry.
NextHopId String Yes

The ID of the next-hop instance of the route entry.

Note: This parameter is required if NextHopList is not specified.

NextHopList JSON string No

A list of next hops of the router entries. Specify this parameter when you create an Equal-cost multi-path routing (ECMP) route entry.

The parameter must meet the following requirements:

  • Only the VRouter of VPC supports adding ECMP route entries.

  • At least two next hops must be specified, but cannot exceed four.

  • The next hops must be the route interfaces pointing to the connected VBRs.

Note: This parameter is required if NextHopId is not specified.

Response parameters

Name Type Description
RequestId String The ID of the request.

Error codes

See VPC API Error Center.


Request example

  1. https://vpc.aliyuncs.com/?Action=DeleteRouteEntry
  2. &RouterTableId=vtb-25vtxl5ct
  3. &DestinationCidrBlock=
  4. &NextHopId=i-25skktcp4
  5. &<CommonParameters>

Response example

XML format

  1. <DeleteRouteEntryResponse>
  2. <RequestId>4357FA74-F9F3-46E7-8890-AA30EC4F8D4F </RequestId>
  3. </DeleteRouteEntryResponse>

JSON format

  1. {
  2. "RequestId": "4357FA74-F9F3-46E7-8890-AA30EC4F8D4F"
  3. }
Thank you! We've received your feedback.