CreateRouteEntry -

更新时间:
复制为 MD 格式

说明

目前该API接口已标记为弃用,推荐使用替代API:Vpc(2016-04-28) - CreateRouteEntry

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

vpc:CreateRouteEntry

create

*RouteTable

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

请求参数

名称

类型

必填

描述

示例值

RegionId

string

RouteTableId

string

DestinationCidrBlock

string

NextHopId

string

ClientToken

string

NextHopType

string

NextHopList

array<object>

object

NextHopId

string

NextHopType

string

返回参数

名称

类型

描述

示例值

object

RequestId

string

示例

正常返回示例

JSON格式

{
  "RequestId": ""
}

错误码

HTTP status code

错误码

错误信息

描述

400 MissingParameter Miss mandatory parameter. 参数不得为空。
400 InvalidCidrBlock.Malformed Specified CIDR block is not valid. 指定的CIDR格式不正确。
400 InvalidCIDRBlock.Duplicate Specified CIDR block is already exists. 指定的网段已经在该路由表中存在。
400 IncorrectVpcStatus Current VPC status does not support this operation. 当前专有网络 VPC 的状态无法支持这个操作。
400 QuotaExceeded Route entry quota exceeded in this route table. 路由器接口已达上限。
400 IncorrectRouteEntryStatus Some route entry status blocked this operation. 无法执行该操作,当前路由表中有路由条目的状态为 pending 或 modifying。
400 InvalidCidrBlock Specified CIDR block is not valid. 可能的报错原因:1. 您不在 10.0.0.0/8 的路由网段的白名单中,不能使用该网段。2. 添加的自定义路由目标网段不能从属于同一个 VPC 下面所有交换机的网段。3. 网段不能是 100.64.0.0/10。
400 InvalidNextHopType Specified parameter "NextHopType" is not valid
400 InvalidNextHop.NotFound Specified next hop does not exist.
400 InvalidVRouter.NotFound vRouter not exists.
400 InvalidVPC.NotFound vpc not exists.
400 InvalidNexthopTypeAndList.BothNull both nexthopType and nextHopList are null. NextHopType 参数和 NextHopList 参数不能为空。
400 InvalidNexthopTypeAndList.BothNotNull both nexthopType and nextHopList are not null. NextHopType 参数和 NextHopList 参数不能为空。
400 InvalidRouterInterface invalid router interface. 路由器接口不合法。
400 InvalidOppositeRouterType nexthop list cannot only contain router interface whose opposite router interface is on vbr. 下一跳列表里不能只包含一种路由器接口,它们的对端路由器接口在虚拟边界路由器上。
400 InvalidNexthopListSize nexthop size is illegal. Must be between 2 and 4. 下一跳的长度必须为 2-4 个字符。
400 InvalidEntryRuleQuota.NotFound Route entry quota rule not exists. 路由条目引用规则不存在。
400 Forbidden.CheckEntryRuleQuota Route entry quota rule check error. 路由条目配额规则检查有误。
400 InvalidVBRStatus invalid virtual border router status. 虚拟边界路由器状态不合法。
400 InvalidPhysicalConnectionBusinessStatus invalid physical connection business status. 物理专线状态不合法。
400 InvalidRouterType Cannot specify nexthop list in vbr's route table.
400 IncorrectHaVipStatus This operation is denied because satus of the specified HaVip is neither Available nor InUse. 指定的私网高可用虚拟IP(HaVip)状态不是“可用”和“使用中”,操作被拒绝。
400 CountLimitExceed.HaVipRouteEntry There can be 5 route entry to HaVip at most in one route table.
400 InvalidRouteEntry.Duplicate The route entry already exist. 指定的路由条目已存在。
400 InvalidParam The Ecmp routerEntry with router interfaces local vgw vip not match. 路由条目与路由器接口本地视频网关 VIP 不匹配。
400 INVALID_WEIGHT_PARAM Specified value of weight invalid 指定的权重值不合法。
400 FORBIDDEN_USE_VPC_AS_INTERNET_GATEWAY The Specified CIDR must be in vpc CIDR.
400 InvalidNexthop The Specified nexthop illegal.
400 INVALID_VPC_ID The Specified VpcId not match. 指定的 VpcId 不匹配。
400 InvalidRouteEntrySize The Specified routerEntry size not legal. 指定的路由条目大小不合法。
400 TaskConflict The operation is too frequent, please wait a moment and try again. 操作过于频繁,请稍等一会再重试
400 InvalidRouteEntry Specified routeEntry not exist.
400 InvalidDestinationCidrBlock The specified destinationCidrBlock must not included in black list cidr.
400 VswitchStatusError The VSwitch is creating .
400 Forbidden.PrivateIpNotFound Private ip address not exist.
400 RouteConflict.AlreadyExist Route conflict exists in routing table.
400 OperationUnsupported.InactiveMode Vpc multi scope route only support active standby.
400 IncorrectStatus.MultiScopeRiRouteEntry MultiScope ri status must not in idle.
400 OperationUnsupported.MoreThanOneVpnOrHavip MultiScope can not support more than one vpn/havip.
400 OperationUnsupported.EcmpRiTypeOrNumber Emcp entry not supported if vpc-vbr or vbr-vlan ri does not exist.
400 Duplicated.VpcNextHop Route entry nexthop duplicate.
400 OperationUnsupported.SubRouteTableECMP Vpc subRouteTable don't support ecmp or multiScope.
400 InvalidNexthop.NotFound VRouterEntry nexthop does not exist.
400 IllegalParam.NextHopId Instance not exists or not vpc vm.
400 InvalidVpnInstanceId.NotFound %s
400 OperationFailed.ScopeActiveRouteEntryType %s
400 OperationFailed.ScopeStandbyRouteEntryQuota %s
400 OperationFailed.ScopeActiveRouteEntryQuota %s
400 OperationUnsupported.ScopeInvalidRouteType %s
400 OperationFailed.EcmpInvalidRouterInterfaceOppositeType %s
400 QuotaExceeded.HaVipRouteEntry Vpc havip route entry quota exceed.
400 OperationFailed.InvalidNexthop vpc multi scope route must has a enable nexthop.
400 OperationFailed.NotifyCenDelete Failed to notify cen when delete route entry.
400 InvalidNatGateway.NotFound Natgateway not exist.
400 OperationFailed.CxpRouteExist Cxp route alreay existed.
400 InvalidNexthop.DirectEni The direct Eni cannot be nexthop.
400 OperationFailed.NotifyCenCreate Failed to notify cen when create route entry.
400 IncorrectStatus.RouteTableStatus %s
400 OperationFailed.GetEniInfo Failed to get networkInterface info.
400 QuotaExceeded.EcmpRouteEntryNextHopCount %s
400 OperationFailed.InvalidNextHopType %s
400 OperationUnsupported.InvalidRouterInterfaceType Only vpc vbr interface support ecmp route.
400 InvalidHaVip.NotFound The specified HaVip does not exist in the specified region.
400 OperationFailed.MultiScopeType The specified nexthop type is not support in multiScope.
400 OperationFailed.DistibuteLock Distibute lock fail.
403 IncorrectInstanceStatus The current status of the resource does not support this operation.
404 InvalidNatGatewayId.NotFound Specified value of NatGatewayId is not found in our record.
404 InvalidInstanId.NotFound Specified instance does not exist. 指定的实例不存在,请您检查该实例是否正确。
404 InvalidNextHopId.NotFound Specified next hop does not exist. 指定的下一跳不存在。
404 InvalidRouteTableId.NotFound Specified route table does not exist. 指定的虚拟路由表不存在。
404 InvalidHaVipId.NotFound The specified HaVip does not exist in the specified VPC.
404 InvalidNetworkInterface.NotFound The specified networkInterface does not exist.
404 InvalidVpc.NotFound Specified vpc is not found in our record.
404 OperationFailed.InstanceDismatchCurrentVpc The specified instance does not exist in current vpc.
404 InvalidIpv6Gateway.NotFound Specified Ipv6Gateway does not exist.

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情