feat(API):策略/对象新增默认值补充

This commit is contained in:
zhangwenqing
2020-04-15 18:23:16 +08:00
parent 0786873809
commit 706a24506e
5 changed files with 80 additions and 72 deletions

View File

@@ -26,8 +26,6 @@ SecurityPolicy-Deny-AllProtol-00001
# ...
Comment 创建目标IP
${objectDict} Create Dictionary
... objectType=ip
... isValid=${1}
... addItemList=CIDR|192.168.100.5|32|0/0
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
${objectids} set Variable ${objectId}
@@ -35,17 +33,7 @@ SecurityPolicy-Deny-AllProtol-00001
Comment 创建安全策略针对所有协议相当于BlackIP
${policyDict} Create Dictionary
... policyName=SecurityPolicy-Deny-AllProtol-00001
... policyType=tsg_security
... policyDesc=autotest
... action=deny
... effectiveRange=${effectiveRange}
... userRegion=method:rst
... referenceObject=${objectId}|TSG_SECURITY_DESTINATION_ADDR
... isValid=${1}
... appObjectIdArray=2,3,4,5,6
... userTags=${userTags}
... doLog=${2}
... scheduleId=${referenceObject}
${rescode} ${policyId} AddPolicy2 ${1} ${policyDict}
${policyId} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]}