feat(API):策略/对象新增默认值补充
This commit is contained in:
@@ -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}]}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user