ModifyRouteEntry_专有网络_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.

接口说明

  • ModifyRouteEntry 接口不支持并发修改同一个自定义路由条目的名称和描述。
  • ModifyRouteEntry 接口在并发情况下可能返回 TaskConflict 错误码,请酌情重试。

流控信息

请求速率为300/60(s)。更多流控信息,请前往配额中心查看

授权信息

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

具体说明如下:展开详情

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

请求参数

字段名称字段详情
RegionIdstring

路由条目所在的地域 ID。展开详情

示例值:cn-hangzhou参考取值来源:
    DescribeRegions
RouteEntryNamestring

路由条目的名称。展开详情

示例值:EntryName参考取值来源:
    DescribeRouteEntryList
RouteEntryIdstring

自定义路由条目 ID。

示例值:rte-acfvgfsghfdd****参考取值来源:
    CreateRouteEntry
    DescribeRouteEntryList
    ListVpcPublishedRouteEntries
Descriptionstring

路由条目的描述。展开详情

示例值:EntryDescription
NewNextHopTypestring

新路由条目下一跳类型。取值如下:展开详情

示例值:NetworkInterface枚举值:HaVipVpnGatewayGatewayLoadBalancerEndpointVpcPeerInstanceNetworkInterfaceNatGatewayAttachmentIpv4GatewayGatewayEndpointEcrRouterInterfaceIPv6Gateway
NewNextHopIdstring

新路由条目下一跳实例 ID。

示例值:eni-bp17y37ytsenqyim****
RouteTableIdstring

路由表 ID。

示例值:vtb-bp1nk7zk65du3pni8z9td参考取值来源:
    CreateRouteTable
    DescribeRouteTableList
    PublishVpcRouteEntries
DestinationCidrBlockstring

路由条目的目标网段,支持 IPv4 网段、IPv6 网段、前缀列表网段和前缀列表的实例 ID。展开详情

示例值:192.168.0.0/24

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:861E6630-AEC0-4B2D-B214-6CB5E44B7F04

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
InvalidRouteEntryId.NotFound
Specified RouteEntryId does not exist.诊断
400
InvalidRouteEntryName.Malformed
Specified RouteEntry name is not valid.诊断
400
OperationDenied.ModifyManagedRouteEntry
The operation is not allowed because of route entry is managed.诊断
400
OperationDenied.RouteTableTypeNotPermitted
The operation is not allowed because the type of route table is not permitted.诊断
400
MissingParam.NewNextHopId
The parameter NewNextHopId is mandatory.诊断
400
IllegealParam.NextHopType
The parameter NewNextHopType is illegal.诊断
400
UnsupportedFeature.NormalTypeNatGateway
Normal nat gateways do not support modifying the next hop of the route.诊断
400
UnsupportedFeature.NextHopType
The route type does not support modifying the next hop of the route.诊断
400
InvalidRouteTable.NotFound
The specified routetable does not exist.诊断
400
InvalidNetworkInterface.NotFound
The specified network interface does not exist.诊断
400
OperationDenied.NextHopExist
The operation is not allowed because the nexthop already exists.诊断
400
MissingParam.NewNextHopType
The parameter NewNextHopType is mandatory.诊断
400
UnsupportedFeature.ModifyRouteEntryNextHop
The current region does not support the function of modifying the route next hop.诊断
400
IncorrectRouteEntryStatus
Some route entry status blocked this operation.诊断
400
ResourceNotFound.VSwitch
The vSwitch where the specified networkinterface is located does not exist.诊断
400
MissingParam.RouteEntryId
The param of %s is missing.诊断
400
IllegalParam.RouteEntryName
The param of %s is illegal.诊断
400
OperationDenied.LocalRouteEntryModified
The next hop of a local route is modified.诊断
400
OperationDenied.IllegalNewNextHopType
When modifying the next hop of a route of the local type, a new next hop type that is not supported is passed in.诊断
400
UnsupportedFeature.VpcAdvancedFeature
The VPC does not support some advanced features.诊断
400
UnsupportedRegion
The feature is not supported in current region.诊断
400
OperationFailed.NotSupportIPV6
The specified next hop does not support IPv6.诊断
400
UnsupportedFeature.ModifyIpv6RouteEntryNextHop
The current region does not support the feature of modifying the IPv6 route next hop.诊断
400
OperationDenied.NewNextHopNotSupportPublish
New nexthop is not supported for published route entry.诊断
400
IllegalParam.DestCidrBlock
The destCidrBlock is invalid.诊断
400
IllegalParamFormat.DstCidrBlock
The format of the specified destination CIDR block is invalid.诊断
400
MissingParam.RouteEntryIdOrRouteTableDstCidr
The request is missing required parameters. You must provide either the RouteEntryId or the combination of RouteTableId and DestinationCidrBlock to proceed. Please ensure that one of these parameter sets is included in your request.诊断
400
MissingParam.ParameterMustNotNull
%s, %s.诊断
400
ResourceNotFound.RouteTable
The specified resource gatewayRouteTable is not found.诊断
403
Forbbiden
User not authorized to operate on the specified resource.诊断
404
ResourceNotFound.NatGateway
The specific NAT gateway is not found.诊断
404
ResourceNotFound.GatewayLoadBalancerEndpoint
GatewayLoadBalancerEndpoint instance not found.诊断

变更历史

变更时间变更内容概要操作
2025-02-25
变更错误码400
2025-02-14
变更错误码400
2024-12-31
变更错误码400
2024-11-19
变更错误码400
2024-11-06
变更错误码400
2024-10-28
变更错误码400
2024-09-29
变更错误码404
2024-09-13
变更错误码404
  • 1
  • 2
  • 10 条/页

相关示例