{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"NeutronCreateFirewallRuleOption":{"description":"","properties":{"action":{"default":"DENY","description":"功能说明:对通过网络ACL的流量执行的操作\n取值范围:DENY(拒绝)/ALLOW(允许)","enum":["DENY","ALLOW"],"example":"DENY","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"description":{"description":"功能说明:网络ACL规则描述\n取值范围:0-255个字符","example":"descrption-01","maxLength":255,"minLength":0,"type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"destination_ip_address":{"description":"功能说明:目的地址或者CIDR","example":"192.168.0.0/24","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"destination_port":{"description":"功能说明:目的端口号或者一段端口范围","example":"20:50","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"enabled":{"default":true,"description":"功能说明:是否使能网络ACL防火墙规则。","example":true,"type":"boolean","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"ip_version":{"default":4,"description":"功能说明:IP协议版本","example":4,"format":"int32","type":"integer","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"name":{"description":"功能说明:网络ACL规则名称\n取值范围:0-255个字符","example":"name-01","maxLength":255,"minLength":0,"type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"protocol":{"description":"功能说明:IP协议\n取值范围:支持TCP,UDP,ICMP, ICMPV6或者ip协议号(0-255)","example":"TCP","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"source_ip_address":{"description":"功能说明:源地址或者CIDR","example":"192.168.0.0/24","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"source_port":{"description":"功能说明:源端口号或者一段端口范围","example":"20:50","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"}}},"NeutronCreateFirewallRuleRequestBody":{"description":"","properties":{"firewall_rule":{"$ref":"#/definitions/NeutronCreateFirewallRuleOption","description":"firewall_rule对象","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"}},"required":["firewall_rule"]},"NeutronErrorBody":{"description":"","properties":{"detail":{"description":"错误请求返回的错误详情","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"message":{"description":"错误请求返回的错误信息","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"type":{"description":"错误请求返回的错误类型","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"}},"required":["detail","message","type"]},"NeutronErrorResponseBody":{"description":"","properties":{"NeutronError":{"$ref":"#/definitions/NeutronErrorBody","description":"错误信息返回体","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"}},"required":["NeutronError"]},"NeutronFirewallRule":{"description":"","properties":{"action":{"description":"功能说明:对通过网络ACL的流量执行的操作。\n取值范围:DENY(拒绝)/ALLOW(允许)","enum":["DENY","ALLOW"],"example":"DENY","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"description":{"description":"功能说明:网络ACL规则描述\n取值范围:0-255个字符长度","example":"description-01","maxLength":255,"minLength":0,"type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"destination_ip_address":{"description":"功能说明:目的地址或者CIDR。","example":"192.168.0.0/24","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"destination_port":{"description":"功能说明:目的端口号或者一段端口范围。","example":"20:50","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"enabled":{"description":"功能说明:是否使能网络ACL规则。\n取值范围:true/false","example":true,"type":"boolean","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"id":{"description":"功能说明:网络ACL规则的uuid标识。","example":"a7dea4c9-21db-4640-aaca-da0209c9ad62","pattern":"[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"ip_version":{"description":"功能说明:IP协议版本\n取值范围:Ipv4/Ipv6","example":4,"format":"int32","maximum":6,"minimum":4,"type":"integer","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"name":{"description":"功能说明:网络ACL规则名称。\n取值范围:0-255个字符","example":"name-01","maxLength":255,"minLength":0,"type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"project_id":{"description":"功能说明:项目ID","example":"b433fedb577940bfa59abff86482ed1a","pattern":"[0-9a-fA-F]{32}","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"protocol":{"description":"功能说明:IP协议\n取值范围:支持TCP,UDP,ICMP, ICMPV6或者IP协议号(0-255)","example":"TCP","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"public":{"description":"功能说明:是否支持跨租户共享\n取值范围:true/false","example":false,"type":"boolean","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"source_ip_address":{"description":"功能说明:源地址或者CIDR。","example":"192.168.0.0/24","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"source_port":{"description":"功能说明:源端口号或者一段端口范围。","example":"20:50","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"tenant_id":{"description":"功能说明:项目ID","example":"b433fedb577940bfa59abff86482ed1a","pattern":"[0-9a-fA-F]{32}","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"}},"required":["action","description","destination_ip_address","destination_port","enabled","id","ip_version","name","project_id","protocol","public","source_ip_address","source_port","tenant_id"]},"NeutronFirewallRuleResponseBody":{"description":"","properties":{"firewall_rule":{"$ref":"#/definitions/NeutronFirewallRule","description":"firewall_rule对象","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"}},"required":["firewall_rule"]}},"description":null,"group_id":"4784d190da9948c381c1603ddda2f4ff","host":"vpc.cn-north-4.myhuaweicloud.com","id":"6589177dc7294085916a7b9763f96083","info_version":"v2","method":"post","name":"NeutronCreateFirewallRule","parameters":{},"paths":{"/v2.0/fwaas/firewall_rules":{"post":{"consumes":[],"deprecated":false,"description":"创建网络ACL规则。","operationId":"NeutronCreateFirewallRule","parameters":[{"description":"用户Token。\n获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc","x-order":1},{"description":"firewall rule对象","in":"body","name":"firewall_rule","required":true,"schema":{"$ref":"#/definitions/NeutronCreateFirewallRuleRequestBody"},"x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc","x-order":2}],"produces":[],"responses":{"201":{"description":"正常返回","examples":{"application/json":{"firewall_rule":{"action":"allow","description":"","destination_ip_address":null,"destination_port":"80","enabled":true,"id":"b94acf06-efc2-485d-ba67-a61acf2a7e28","ip_version":4,"name":"ALLOW_HTTP","protocol":"tcp","public":false,"source_ip_address":null,"source_port":null,"tenant_id":"23c8a121505047b6869edf39f3062712"}}},"schema":{"$ref":"#/definitions/NeutronFirewallRuleResponseBody"}},"400":{"description":"服务器未能处理请求。","schema":{"$ref":"#/definitions/NeutronErrorResponseBody"}},"401":{"description":"被请求的页面需要用户名和密码。","schema":{"$ref":"#/definitions/NeutronErrorResponseBody"}},"403":{"description":"对被请求页面的访问被禁止。","schema":{"$ref":"#/definitions/NeutronErrorResponseBody"}},"404":{"description":"服务器无法找到被请求的页面。","schema":{"$ref":"#/definitions/NeutronErrorResponseBody"}},"409":{"description":"由于冲突,请求无法被完成。","schema":{"$ref":"#/definitions/NeutronErrorResponseBody"}},"500":{"description":"请求未完成。服务异常。","schema":{"$ref":"#/definitions/NeutronErrorResponseBody"}}},"summary":"创建网络ACL规则","tags":["OpenStack - 网络ACL"],"x-apiexplorer-hide":"false","x-constraint":"","x-first-open-time":"2017-3-30","x-hybridcloud":"true","x-is-registered":"Y","x-name":"创建网络ACL规则","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc","x-order":101,"x-publishpath":"","x-request-examples-1":{"firewall_rule":{"action":"allow","destination_port":"80","enabled":true,"name":"ALLOW_HTTP","protocol":"tcp"}},"x-request-examples-description-1":"","x-request-examples-text-1":"{\n\t\"firewall_rule\": {\n\t\t\"action\": \"allow\",\n\t\t\"enabled\": true,\n\t\t\"destination_port\": \"80\",\n\t\t\"protocol\": \"tcp\",\n\t\t\"name\": \"ALLOW_HTTP\"\n\t}\n}","x-request-examples-url-1":"POST https://{Endpoint}/v2.0/fwaas/firewall_rules","x-scope":"Commercial","x-source":"Native","x-support-sdk":"Y","x-version":"v2.0"}}},"product_short":"VPC","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建网络ACL规则","tags":"OpenStack - 网络ACL","uri":null,"version":"2.0"}