ModifyRouteAttributes
修改一条路由表规则。
请求参数
| 参数 | 参数类型 | 描述 | 是否必选 | 
|---|---|---|---|
| action | String | 请求动作,可选值:ModifyRouteAttributes | Yes | 
| disable | Integer | 是否禁用,取值如下 0 - 启用 1 - 禁用 | No | 
| network | String | 路由表规则目标网段 | No | 
| nexthop | String | 路由表规则的下一跳,可以是路由器ID,也可以是IP地址,取决于nexthop_type | No | 
| nexthop_type | String | 路由表规则的下一跳类型, 可选值:2,3,4 2 - 路由器,nexthop取值应该是路由器的ID 3 - IP地址,nexthop取值应该是IP地址 4 - NAT网关的ID | No | 
| route_table_rule_name | String | 路由表规则名称 | No | 
返回数据
| 参数 | 参数类型 | 描述 | 
|---|---|---|
| action | String | 响应动作 | 
| ret_code | Integer | 执行成功与否,0 表示成功,其他值则为错误代码 | 
示例
请求示例:
https://api.qingcloud.com/iaas/?action=ModifyRouteAttributes
&routing_table_rule=r-qdkyht01
&network=172.31.0.0/24
&nexthop_type=2
&nexthop=rtr-s9l10zeb
&COMMON_PARAMS
Example Response
{
	"action": "ModifyRouteAttributesResponse",
	"ret_code": 0
}