UpdateGatewayRouteTableEntryAttribute_专有网络_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:UpdateGatewayRouteTableEntryAttribute
Update
RouteTable
acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}

请求参数

字段名称字段详情
RegionIdstring

要修改的网关路由表所在地域 ID。展开详情

示例值:ap-southeast-6参考取值来源:
    DescribeRegions
IPv4GatewayRouteTableIdstring

要修改的网关路由表 ID。

示例值:vtb-5ts0ohchwkp3dydt2****
GatewayRouteTableIdstring

要修改的网关路由表 ID。

示例值:vtb-5ts0ohchwkp3dydt2****参考取值来源:
    GetIpv4GatewayAttribute
    DescribeIpv6GatewayAttribute
    ListIpv4Gateways
ClientTokenstring

客户端 Token,用于保证请求的幂等性。展开详情

示例值:123e4567-e89b-12d3-a456-426655440000
DryRunboolean

是否只预检此次请求。取值:展开详情

示例值:false
DestinationCidrBlockstring

网关路由表的路由条目的目标网段。

示例值:47.100.XX.XX/16
NextHopTypestring

要修改的路由条目下一跳类型。取值:展开详情

示例值:Instance
NextHopIdstring

要修改的下一跳的实例 ID。展开详情

示例值:i-bp18xq9yguxoxe7m****
Namestring

网关路由表的名称。展开详情

示例值:test
Descriptionstring

网关路由表的描述信息。展开详情

示例值:new

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:54B48E3D-DF70-471B-AA93-08E683A1B45

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
OperationDenied.UpdateGatewayRouteEntry
The operation is not allowed because of need switch to local first.诊断
400
IllegalParam.DestCidrBlock
The destCidrBlock is invalid.诊断
400
ResourceNotFound.NetworkInterface
The specified resource nextHop is not found.诊断
400
ResourceNotFound.RouteEntry
The specified resource routeEntry is not found.诊断
400
IncorrectStatus.RouteEntry
The status of %s [%s] is incorrect.诊断
400
IncorrectStatus.Vswitch
The status of %s [%s] is incorrect.诊断
400
ResourceNotFound.Instance
The specified resource nextHop is not found.诊断
400
IncorrectStatus.NextHop
The status of %s [%s] is incorrect.诊断
400
OperationDenied.NextHopTypeNonsupport
The operation is not allowed because of nextHopType is nonsupport.诊断
400
OperationDenied.LocalEntryCanOnlyModifyNextHop
Only the nextHop parameter can be modified for a local route entry.诊断
400
ExclusiveParam.NextHopTypeAndNextHopId
The param of nextHopType and nextHopId are mutually exclusive.诊断
400
ResourceNotFound.RouteTable
The specified resource gatewayRouteTable is not found.诊断
400
InvalidRouterInterfaceId.NotFound
The specified RouterInterfaceId does not exist in our record.诊断
400
OperationUnsupported.OnlySupportNormalNetworkInterface
Next hop only supports binding normal network Interface.诊断
400
UnsupportedRegion
The feature is not supported in current region.诊断
400
UnsupportedFeature.Ipv6GatewayRouteTable
The feature of %s is not supported.诊断
400
OperationDenied.TrAttachmentIpv6Disabled
The operation is not allowed because tr attachment Ipv6 is disabled.诊断
400
InvalidAttachment.NotFound
The attachment is not found.诊断
400
BothEmptyParam.GatewayRouteTableIdAndIpv4GatewayRouteTableId
The parameter GatewayRouteTableId and Ipv4GatewayRouteTableId cannot be empty at the same time. We recommend that you use GatewayRouteTableId.诊断
404
ResourceNotFound.GatewayLoadBalancerEndpoint
GatewayLoadBalancerEndpoint instance not found.诊断

变更历史

变更时间变更内容概要操作
2025-02-28
变更错误码400
2025-02-20
变更错误码400
2025-02-19
变更错误码400
2024-12-31
变更错误码400
2024-09-03
变更错误码400
新增错误码404
2023-12-19
变更请求参数GatewayRouteTableId
2023-12-08
变更错误码400
  • 1
  • 2
  • 10 条/页

相关示例

1.创建vpc->创建vswitch->创建ipv4网关->使能ipv4网关->修改ipv4网关名称、描述等属性 2.创建网关路由表->查询ipv4网关->绑定网关路由表到ipv4网关 3.创建ecs->网关路由表指定路由下一跳为ecs->查询网关路由条目 4.查询ipv4网关->解绑ipv4网关->删除ipv4网关
2021-12-17