修改防火墙规则

更新时间:2019-06-04 14:42:09

描述

修改防火墙规则信息。

请求参数

参数名参数类型是否必填参数说明
Action String

操作方法

Region String

机房标识,取值参见地域列表

Id String

防火墙规则标识

Name String

名称

Direction String

方向:

  • ingress
  • egress
PortStart String

起始端口,TCP、UPD、ICMP协议时必传,其他协议不能传此参数

PortEnd String

结束端口,TCP、UPD、ICMP协议时必传,其他协议不能传此参数

Protocol String

协议:

  • TCP
  • UDP
  • ICMP
  • GRE
  • ESP
  • AH
  • IPIP
  • ALL(所有协议)
Priority String

优先级

RemoteIpPrefix String

允许的IP地址范围,允许所有传0.0.0.0/0

Enabled Boolean

是否启用

返回参数

名称 类型 说明
Action String 执行的操作
TaskId String 请求标识

请求示例

https://api.chinac.com/v2/?Action=ModifyFirewallRuleAttributes
&Region=cn-wuxi1
&Id=fr-sddc
&Name=ssss
&<公共请求参数>

返回示例

{
    "code": 10000,
    "message": "",
    "data": {
        "TaskId": "bb112c20170506133720502",
        "Action": "ModifyFirewallRuleAttributes"
    }
}
*
*
*
*
*
*
*