CreateRouteEntry_云服务器 ECS_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

流控信息

当前云产品API请求速率暂未透出。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
vpc:CreateRouteEntry
Create
RouteTable
acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}

请求参数

字段名称字段详情
RegionIdstring
RouteTableIdstring
DestinationCidrBlockstring
NextHopIdstring
ClientTokenstring
NextHopTypestring
NextHopListarray<object>
子级条数 <= 4

返回参数

字段名称字段详情
RequestIdstring

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
MissingParameter
Miss mandatory parameter.诊断
400
InvalidCidrBlock.Malformed
Specified CIDR block is not valid.诊断
400
InvalidCIDRBlock.Duplicate
Specified CIDR block is already exists.诊断
400
IncorrectVpcStatus
Current VPC status does not support this operation.诊断
400
QuotaExceeded
Route entry quota exceeded in this route table.诊断
400
IncorrectRouteEntryStatus
Some route entry status blocked this operation.诊断
400
InvalidCidrBlock
Specified CIDR block is not valid.诊断
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.诊断
400
InvalidNexthopTypeAndList.BothNotNull
both nexthopType and nextHopList are not null.诊断
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.诊断
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.诊断
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.诊断
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.诊断
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.诊断

变更历史

暂无变更历史

相关示例