CaaS / CVPC API 开发者中心

防火墙

使用说明

replaceNetworkAcl异动防火墙服务

Request 参数

参数 说明 备注
networkAclId 防火墙服务标识号
类型 : String
默认值 : 无
是否为复数型态 : 否
policyString 防火墙组态设置列表
类型 : String
默认值 : 无
是否为复数型态 : 是
请参考createNetworkAcl的 " Request参数说明示例" 中的 policyString 说明

businessTag

业务类别
类型 : String
预设值 : 无
是否为复数型态 : 否
CaaS请带cb168f20-c515-4e41-84cd-830dedfe7f49;
CVPC请带a2931aa4-8751-4f09-8df3-bcc0d18f8b75;

Response 参数

参数 说明 备注
requestId       

(非必要参数)

请求标识号
类型 : JSON value : string
是否为复数型态 : 否
系统自动生成
statusMap 防火墙服务标识号-状态列表
类型 : JSON value : object
是否为复数型态 : 是
object为{string,string}
例:
{ "BF550100010003": "setting" }

状态值为 setting: 设置中

CaaS Request示例

https://hws.hicloud.hinet.net/cloud_hws/api/hws/?action=replaceNetworkAcl
&networkAclId=BF550100010003
&policyString=1;;1;;all;;deny;;TCP;;53-53
&chtAuthType=hwspass
&version=${version}
&expires=${expires}
&accessKey=${accessKey}
&signature=${signature}
&businessTag=cb168f20-c515-4e41-84cd-830dedfe7f49

		

CaaS Response示例

{
	"requestId":"xxxEXAMPLE",
	"statusMap": {
		"BF550100010003": "setting"
	}
}
		

CVPC Request示例

https://hws.hicloud.hinet.net/cloud_hws/api/hws/?action=replaceNetworkAcl
&networkAclId=BF550100010003
&policyString=0;;1;;subnet$0.0.0.0;;nat$VT55020001IOSL;;accept;;TCP/3306-3306,TCP/27017-27017;;;;LOG$1;;0::1;;1;;subnet$192.168.55.0/24;;portforward$VT55020001IOSJ;;accept;;IP/6;;;;LOG$1;;0::2;;1;;fqdn$xxxxx;;slb$VL55020001IOSR;;accept;;ICMP;;;;LOG$1;;0::3;;0;;subnet$192.168.55.0/24;;iprange$192.168.55.0-192.168.55.100;;accept;;UDP/3306-3306,TCP/27017-27017;;;;LOG$1,IP_POOL$210.61.223.76-210.61.223.76;;1::4;;1;;subnet$192.168.55.0/24;;subnet$192.168.55.0/24;;deny;;TCP/3306-3306,TCP/27017-27017;;;;LOG$1;;2::5;;1;;subnet$192.168.55.0/24;;subnet$192.168.55.0/24;;accept;;TCP/3306-3306,TCP/27017-27017;;;;LOG$1;;3::7;;1;;subnet$192.168.55.0/24;;subnet$192.168.55.0/24;;accept;;TCP/3306-3306,TCP/27017-27017;;;;LOG$1;;4
&chtAuthType=hwspass
&version=${version}
&expires=${expires}
&accessKey=${accessKey}
&signature=${signature}
&businessTag=a2931aa4-8751-4f09-8df3-bcc0d18f8b75


		

CVPC Response示例

		{"requestId":"2c957f615865ec0c0158660fb1ef0009","statusMap":{"{0;;1;;subnet$0.0.0.0;;nat$VT55020001IOSL;;accept;;TCP/3306-3306,TCP/27017-27017;;;;LOG$1;;0::1;;1;;subnet$192.168.55.0/24;;portforward$VT55020001IOSJ;;accept;;IP/6;;;;LOG$1;;0::2;;1;;fqdn$xxxxx;;slb$VL55020001IOSR;;accept;;ICMP;;;;LOG$1;;0::3;;0;;subnet$192.168.55.0/24;;iprange$192.168.55.0-192.168.55.100;;accept;;UDP/3306-3306,TCP/27017-27017;;;;LOG$1,IP_POOL$210.61.223.76-210.61.223.76;;1::4;;1;;subnet$192.168.55.0/24;;subnet$192.168.55.0/24;;deny;;TCP/3306-3306,TCP/27017-27017;;;;LOG$1;;2::5;;1;;subnet$192.168.55.0/24;;subnet$192.168.55.0/24;;accept;;TCP/3306-3306,TCP/27017-27017;;;;LOG$1;;3::7;;1;;subnet$192.168.55.0/24;;subnet$192.168.55.0/24;;accept;;TCP/3306-3306,TCP/27017-27017;;;;LOG$1;;4::}":"setting"}}
		

相关链接

describeNetworkAcls

错误信息

OrderProcessFail