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

流控信息

请求速率为600/60(s)。

授权信息

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

具体说明如下:展开详情

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

请求参数

字段名称字段详情
RegionIdstring

要绑定的网关路由表和 IPv4 网关实例所在的地域 ID。展开详情

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

要绑定的网关路由表 ID。

示例值:vtb-5ts0ohchwkp3dydt2****参考取值来源:
    CreateRouteTable
    DescribeRouteTableList
    PublishVpcRouteEntries
ClientTokenstring

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

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

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

示例值:false
GatewayIdstring

要关联的 IPv4 网关实例 ID。展开详情

示例值:ipv4gw-5tsnc6s4ogsedtp3k****参考取值来源:
    ListIpv4Gateways
    CreateIpv4Gateway
    DescribeIpv6Gateways
    ModifyVpnGatewayAttribute
GatewayTypestring

要关联的网关实例的类型。

示例值:Ipv4Gateway

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:F89C2176-8F10-55EF-90CF-CF99D1E3F816

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
ResourceNotFound.Ipv4Gateway
The specified resource ipv4Gateway is not found.诊断
400
IncorrectStatus.Ipv4Gateway
The status of %s [%s] is incorrect.诊断
400
ResourceAlreadyAssociated.Ipv4Gateway
The specified resource %s is already associated.诊断
400
ResourceNotFound.GatewayRouteTable
The specified resource GatewayRouteTable is not found.诊断
400
IncorrectStatus.GatewayRouteTable
The status of %s [%s] is incorrect.诊断
400
ResourceAlreadyAssociated.GatewayRouteTable
The specified resource %s is already associated.诊断
400
OperationDenied.Ipv4GatewayNotActive
The operation is not allowed because of ipv4Gateway [%s] is not active.诊断
400
OperationDenied.RouteTableTypeIncorrect
The operation is not allowed because of routeTableType is incorrect.诊断
400
ResourceNotFound.RouteTable
The specified resource gatewayRouteTable is not found.诊断
400
OperationDenied.GatewayAndTableNotInOneVpc
The operation is not allowed because of GatewayAndTableNotInOneVpc.诊断
400
IncorrectStatus.RouteTable
The status of the specified route table is incorrect.诊断
400
IllegalParam.GatewayType
The param of %s is illegal.诊断
400
UnsupportedFeature.Ipv6GatewayRouteTable
The feature of %s is not supported.诊断
400
OperationDenied.IngressRoutingNotSupportAnycast
The operation is not allowed because ingress routing not support anycast.诊断
400
OperationDenied.ExistPublicIpv6IpInVpc
Operation denied because IPV6 public ip exists in VPC.诊断

变更历史

变更时间变更内容概要操作
2025-03-20
变更错误码400
2024-12-31
变更错误码400
2023-08-30
删除返回参数
2023-06-30
变更错误码400
2021-11-17
变更错误码400
2021-11-02
新增OpenAPI,绑定网关路由表和网关

相关示例

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