创建安全策略
典型场景
用于创建安全策略。
接口功能
创建安全策略。
接口约束
该接口仅支持租户视图或msp代维视图下,角色为“Open Api Operator”的用户访问,必须在用户会话建立后使用。
调用方法
POST
URI
/controller/campus/v1/sdwan/policy/security/security-policies
请求参数
参数名称 |
必选 |
类型 |
参数值域 |
默认值 |
参数说明 |
参数示例 |
---|---|---|---|---|---|---|
securityPolicyInfos |
是 |
REFERENCE |
详细请参见表2。 |
创建安全策略请求数据。 |
- |
参数名称 |
必选 |
类型 |
参数值域 |
默认值 |
参数说明 |
参数示例 |
---|---|---|---|---|---|---|
effectImmediate |
否 |
boolean |
|
true |
是否立即生效,非必填,默认值true |
true |
securityPolicyInfo |
否 |
ARRAY_REFERENCE |
0-100个列表项,详细请参见表3。 |
安全策略信息 |
- |
参数名称 |
必选 |
类型 |
参数值域 |
默认值 |
参数说明 |
参数示例 |
---|---|---|---|---|---|---|
id |
否 |
string |
0~64个字符。 |
- |
策略ID,修改或删除的时候必填。 |
"00000000-0000-0000-0000-000000000000" |
vpnId |
否 |
string |
0~64个字符。 |
- |
VPN ID,创建或修改的时候必填。 |
"00000000-0000-0000-0000-000000000000" |
name |
否 |
string |
1~64个字符。 |
- |
策略名称,创建或修改的时候必填。 |
"test_1" |
status |
否 |
int32 |
[0-100] |
- |
不支持填值,仅用于回显策略状态。 策略状态: 0:新增待下发; 1:修改待下发; 2:删除待下发; 3:已提交; 4:预约待下发; >10:提交操作正在进行中 |
1 |
isActive |
否 |
boolean |
|
- |
策略生效状态,创建时该字段无效,仅修改有效。 |
true |
internetToUserRules |
否 |
ARRAY_REFERENCE |
0-32个列表项,详细请参见表5。 |
入方向规则列表。 |
- |
|
userToInternetRules |
否 |
ARRAY_REFERENCE |
0-32个列表项,详细请参见表5。 |
出方向规则列表。 |
- |
|
policyType |
否 |
boolean |
|
false |
是否自定义安全策略作用的“安全域间”信息,默认false。 |
false |
securityZone |
否 |
REFERENCE |
详细请参见表7。 |
安全域列表。安全策略域间方向举例:配置域间zone1,zone2,出方向表示源安全域为zone1,目的安全域为zone2;入方向表示源安全域为zone2,目的安全域为zone1。 |
- |
|
enableSecurityZones |
否 |
boolean |
|
- |
使能securityZones,创建、修改时填写,默认值为false。。securityZone和securityZones不会同时生效,enableSecurityZones开启时,安全策略安全域取值securityZones;关闭时,安全策略安全域取值securityZone。 |
true |
securityZones |
否 |
REFERENCE |
详细请参见表4。 |
安全域列表。出方向源安全域为sourceZones,目的安全域为destZones;入方向反之。 |
- |
参数名称 |
必选 |
类型 |
参数值域 |
默认值 |
参数说明 |
参数示例 |
---|---|---|---|---|---|---|
sourceZones |
否 |
array<string> |
0-16 个列表项。每个列表项1~63个字符。 |
- |
源安全域列表。 |
["test_1"] |
destZones |
否 |
array<string> |
0-16 个列表项。每个列表项1~63个字符。 |
- |
目的安全域列表。 |
["test_2"] |
参数名称 |
必选 |
类型 |
参数值域 |
默认值 |
参数说明 |
参数示例 |
---|---|---|---|---|---|---|
id |
否 |
string |
0~64个字符。 |
- |
出入口方向规则ID。 |
"00000000-0000-0000-0000-000000000000" |
priority |
否 |
int32 |
[0-5000] |
- |
优先级,创建或修改时必填。范围1到5000,1高,5000低,建议步长10。 |
1 |
action |
否 |
string |
4~6个字符。 |
- |
动作类型,取值范围为permit、deny,permit表示允许,deny表示不允许。创建时必填。 |
"deny" |
protocolNum |
否 |
int32 |
[0-255] |
- |
协议号。1为ICMP,6为TCP,17为UDP,132为SCTP。 |
6 |
sourceIp |
否 |
string |
0~64个字符。 |
- |
源IP网段或者any。 |
"192.168.0.0/24" |
targetIp |
否 |
string |
0~64个字符。 |
- |
目的IP网段或者any。 |
"192.168.0.0/24" |
sourcePort |
否 |
int32 |
[0-65535] |
- |
起始源端口号。 |
6 |
endSourcePort |
否 |
int32 |
[0-65535] |
- |
结束源端口号。 |
6 |
targetPort |
否 |
int32 |
[0-65535] |
- |
起始目的端口号。 |
6 |
endTargetPort |
否 |
int32 |
[0-65535] |
- |
结束目的端口号。 |
6 |
ipsProfile |
否 |
string |
0~32个字符。 |
- |
IPS配置模板名称,已在设备预置,开启IPS必须应用一种配置模板。仅V600的FW网关设备从24.0版本开始支持自定义配置。 |
"strict" |
avProfile |
否 |
string |
0~32个字符。 |
- |
av配置模板名称,已在设备预置,开启反病毒功能必须应用一种配置模板。仅V600的FW网关设备从24.0版本开始支持自定义配置。 |
"default" |
urlProfile |
否 |
string |
0~64个字符。 |
- |
URL配置模板名称。 |
"default" |
sourceIpAddressSets |
否 |
array<string> |
0-16 个列表项。每个列表项0~63个字符。 |
- |
地址集合列表。 |
["sourceIpAddressSet"] |
targetIpAddressSets |
否 |
array<string> |
0-16 个列表项。每个列表项0~63个字符。 |
- |
地址集合列表。 |
["targetIpAddressSet"] |
sourceGeoLocationSets |
否 |
ARRAY_REFERENCE |
0-600个列表项,详细请参见表6。 |
源地区国际化信息集合。 |
- |
|
targetGeoLocationSets |
否 |
ARRAY_REFERENCE |
0-600个列表项,详细请参见表6。 |
目的地区国际化信息集合。 |
- |
|
sourceDomainSets |
否 |
array<string> |
0-8 个列表项。每个列表项0~32个字符。 |
- |
域名组集合。 |
["sourceDomainSet"] |
targetDomainSets |
否 |
array<string> |
0-8 个列表项。每个列表项0~32个字符。 |
- |
域名组集合。 |
["targetDomainSet"] |
sourceFeeds |
否 |
array<string> |
0-16 个列表项。每个列表项0~128个字符。 |
- |
源外部情报源集合。仅V600的FW网关设备从24.0版本开始支持。 |
[""] |
targetFeeds |
否 |
array<string> |
0-16 个列表项。每个列表项0~128个字符。 |
- |
目的外部情报源集合。仅V600的FW网关设备从24.0版本开始支持。 |
[""] |
appGroups |
否 |
array<string> |
0-16 个列表项。每个列表项0~32个字符。 |
- |
应用组集合。 |
["appGroup"] |
effectiveTimeId |
否 |
string |
0~64个字符。 |
- |
生效时间模板ID。 |
"00000000-0000-0000-0000-000000000000" |
effectiveTimeName |
否 |
string |
0~64个字符。 |
- |
生效时间模板名称。 |
"effectiveTimeName" |
fileProfile |
否 |
string |
0~32个字符。 |
- |
文件类型过滤名称。仅V600的FW设备在24.0及之后版本支持。 |
"fileProfile01" |
参数名称 |
必选 |
类型 |
参数值域 |
默认值 |
参数说明 |
参数示例 |
---|---|---|---|---|---|---|
key |
否 |
string |
0~64个字符。 |
- |
英文名。 |
- |
name |
否 |
string |
0~64个字符。 |
- |
国际化名称。 |
- |
参数名称 |
必选 |
类型 |
参数值域 |
默认值 |
参数说明 |
参数示例 |
---|---|---|---|---|---|---|
securityInterZones |
否 |
ARRAY_REFERENCE |
0-5个列表项,详细请参见表8。 |
安全域间列表,创建修改时仅支持配置一组。 |
- |
请求示例
POST /controller/campus/v1/sdwan/policy/security/security-policies HTTP/1.1 Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-ACCESS-TOKEN: x-yyyyyy { "effectImmediate" : true, "securityPolicyInfo" : [ { "id" : "00000000-0000-0000-0000-000000000000", "vpnId" : "00000000-0000-0000-0000-000000000000", "name" : "test_1", "status" : 1, "isActive" : true, "internetToUserRules" : [ { "id" : "00000000-0000-0000-0000-000000000000", "priority" : 1, "action" : "deny", "protocolNum" : 6, "sourceIp" : "192.168.0.0/24", "targetIp" : "192.168.0.0/24", "sourcePort" : 6, "endSourcePort" : 6, "targetPort" : 6, "endTargetPort" : 6, "ipsProfile" : "strict", "avProfile" : "default", "urlProfile" : "default", "sourceIpAddressSets" : [ "sourceIpAddressSet" ], "targetIpAddressSets" : [ "targetIpAddressSet" ], "sourceGeoLocationSets" : [ { "key" : "", "name" : "" } ], "targetGeoLocationSets" : [ { "key" : "", "name" : "" } ], "sourceDomainSets" : [ "sourceDomainSet" ], "targetDomainSets" : [ "targetDomainSet" ], "sourceFeeds" : "ipFeed01", "ipFeed02" , "targetFeeds" : "ipFeed01", "ipFeed02" , "appGroups" : [ "appGroup" ], "effectiveTimeId" : "00000000-0000-0000-0000-000000000000", "effectiveTimeName" : "effectiveTimeName", "fileProfile" : "fileProfile01" } ], "userToInternetRules" : [ { "id" : "00000000-0000-0000-0000-000000000000", "priority" : 1, "action" : "deny", "protocolNum" : 6, "sourceIp" : "192.168.0.0/24", "targetIp" : "192.168.0.0/24", "sourcePort" : 6, "endSourcePort" : 6, "targetPort" : 6, "endTargetPort" : 6, "ipsProfile" : "strict", "avProfile" : "default", "urlProfile" : "default", "sourceIpAddressSets" : [ "sourceIpAddressSet" ], "targetIpAddressSets" : [ "targetIpAddressSet" ], "sourceGeoLocationSets" : [ { "key" : "", "name" : "" } ], "targetGeoLocationSets" : [ { "key" : "", "name" : "" } ], "sourceDomainSets" : [ "sourceDomainSet" ], "targetDomainSets" : [ "targetDomainSet" ], "sourceFeeds" : "ipFeed01", "ipFeed02" , "targetFeeds" : "ipFeed01", "ipFeed02" , "appGroups" : [ "appGroup" ], "effectiveTimeId" : "00000000-0000-0000-0000-000000000000", "effectiveTimeName" : "effectiveTimeName", "fileProfile" : "fileProfile01" } ], "policyType" : false, "securityZone" : { "securityInterZones" : [ [ "test_1" ] ] }, "enableSecurityZones" : true, "securityZones" : { "sourceZones" : [ "test_1" ], "destZones" : [ "test_2" ] } } ] }
响应参数
返回状态码为201:创建成功,响应体参考SecurityPolicyResponse。
参数名称 |
类型 |
参数值域 |
默认值 |
参数说明 |
参数示例 |
---|---|---|---|---|---|
errcode |
string |
0~256个字符。 |
- |
错误码。 |
"0" |
errmsg |
string |
0~256个字符。 |
- |
错误信息。 |
"" |
success |
ARRAY_REFERENCE |
0-100个列表项,详细请参见表10。 |
成功的安全策略信息列表。 |
- |
|
fail |
ARRAY_REFERENCE |
0-100个列表项,详细请参见表16。 |
失败的安全策略信息列表。 |
- |
参数名称 |
类型 |
参数值域 |
默认值 |
参数说明 |
参数示例 |
---|---|---|---|---|---|
id |
string |
0~64个字符。 |
- |
策略ID,修改或删除的时候必填。 |
"00000000-0000-0000-0000-000000000000" |
vpnId |
string |
0~64个字符。 |
- |
VPN ID,创建或修改的时候必填。 |
"00000000-0000-0000-0000-000000000000" |
name |
string |
1~64个字符。 |
- |
策略名称,创建或修改的时候必填。 |
"test_1" |
status |
int32 |
[0-100] |
- |
不支持填值,仅用于回显策略状态。 策略状态: 0:新增待下发; 1:修改待下发; 2:删除待下发; 3:已提交; 4:预约待下发; >10:提交操作正在进行中 |
1 |
isActive |
boolean |
|
- |
策略生效状态,创建时该字段无效,仅修改有效。 |
true |
internetToUserRules |
ARRAY_REFERENCE |
0-32个列表项,详细请参见表12。 |
入方向规则列表。 |
- |
|
userToInternetRules |
ARRAY_REFERENCE |
0-32个列表项,详细请参见表12。 |
出方向规则列表。 |
- |
|
policyType |
boolean |
|
false |
是否自定义安全策略作用的“安全域间”信息,默认false。 |
false |
securityZone |
REFERENCE |
详细请参见表14。 |
安全域列表。安全策略域间方向举例:配置域间zone1,zone2,出方向表示源安全域为zone1,目的安全域为zone2;入方向表示源安全域为zone2,目的安全域为zone1。 |
- |
|
enableSecurityZones |
boolean |
|
- |
使能securityZones,创建、修改时填写,默认值为false。。securityZone和securityZones不会同时生效,enableSecurityZones开启时,安全策略安全域取值securityZones;关闭时,安全策略安全域取值securityZone。 |
true |
securityZones |
REFERENCE |
详细请参见表11。 |
安全域列表。出方向源安全域为sourceZones,目的安全域为destZones;入方向反之。 |
- |
参数名称 |
类型 |
参数值域 |
默认值 |
参数说明 |
参数示例 |
---|---|---|---|---|---|
sourceZones |
array<string> |
0-16 个列表项。每个列表项1~63个字符。 |
- |
源安全域列表。 |
["test_1"] |
destZones |
array<string> |
0-16 个列表项。每个列表项1~63个字符。 |
- |
目的安全域列表。 |
["test_2"] |
参数名称 |
类型 |
参数值域 |
默认值 |
参数说明 |
参数示例 |
---|---|---|---|---|---|
id |
string |
0~64个字符。 |
- |
出入口方向规则ID。 |
"00000000-0000-0000-0000-000000000000" |
priority |
int32 |
[0-5000] |
- |
优先级,创建或修改时必填。范围1到5000,1高,5000低,建议步长10。 |
1 |
action |
string |
4~6个字符。 |
- |
动作类型,取值范围为permit、deny,permit表示允许,deny表示不允许。创建时必填。 |
"deny" |
protocolNum |
int32 |
[0-255] |
- |
协议号。1为ICMP,6为TCP,17为UDP,132为SCTP。 |
6 |
sourceIp |
string |
0~64个字符。 |
- |
源IP网段或者any。 |
"192.168.0.0/24" |
targetIp |
string |
0~64个字符。 |
- |
目的IP网段或者any。 |
"192.168.0.0/24" |
sourcePort |
int32 |
[0-65535] |
- |
起始源端口号。 |
6 |
endSourcePort |
int32 |
[0-65535] |
- |
结束源端口号。 |
6 |
targetPort |
int32 |
[0-65535] |
- |
起始目的端口号。 |
6 |
endTargetPort |
int32 |
[0-65535] |
- |
结束目的端口号。 |
6 |
ipsProfile |
string |
0~32个字符。 |
- |
IPS配置模板名称,已在设备预置,开启IPS必须应用一种配置模板。仅V600的FW网关设备从24.0版本开始支持自定义配置。 |
"strict" |
avProfile |
string |
0~32个字符。 |
- |
av配置模板名称,已在设备预置,开启反病毒功能必须应用一种配置模板。仅V600的FW网关设备从24.0版本开始支持自定义配置。 |
"default" |
urlProfile |
string |
0~64个字符。 |
- |
URL配置模板名称。 |
"default" |
sourceIpAddressSets |
array<string> |
0-16 个列表项。每个列表项0~63个字符。 |
- |
地址集合列表。 |
["sourceIpAddressSet"] |
targetIpAddressSets |
array<string> |
0-16 个列表项。每个列表项0~63个字符。 |
- |
地址集合列表。 |
["targetIpAddressSet"] |
sourceGeoLocationSets |
ARRAY_REFERENCE |
0-600个列表项,详细请参见表13。 |
源地区国际化信息集合。 |
- |
|
targetGeoLocationSets |
ARRAY_REFERENCE |
0-600个列表项,详细请参见表13。 |
目的地区国际化信息集合。 |
- |
|
sourceDomainSets |
array<string> |
0-8 个列表项。每个列表项0~32个字符。 |
- |
域名组集合。 |
["sourceDomainSet"] |
targetDomainSets |
array<string> |
0-8 个列表项。每个列表项0~32个字符。 |
- |
域名组集合。 |
["targetDomainSet"] |
sourceFeeds |
array<string> |
0-16 个列表项。每个列表项0~128个字符。 |
- |
源外部情报源集合。仅V600的FW网关设备从24.0版本开始支持。 |
[""] |
targetFeeds |
array<string> |
0-16 个列表项。每个列表项0~128个字符。 |
- |
目的外部情报源集合。仅V600的FW网关设备从24.0版本开始支持。 |
[""] |
appGroups |
array<string> |
0-16 个列表项。每个列表项0~32个字符。 |
- |
应用组集合。 |
["appGroup"] |
effectiveTimeId |
string |
0~64个字符。 |
- |
生效时间模板ID。 |
"00000000-0000-0000-0000-000000000000" |
effectiveTimeName |
string |
0~64个字符。 |
- |
生效时间模板名称。 |
"effectiveTimeName" |
fileProfile |
string |
0~32个字符。 |
- |
文件类型过滤名称。仅V600的FW设备在24.0及之后版本支持。 |
"fileProfile01" |
参数名称 |
类型 |
参数值域 |
默认值 |
参数说明 |
参数示例 |
---|---|---|---|---|---|
key |
string |
0~64个字符。 |
- |
英文名。 |
- |
name |
string |
0~64个字符。 |
- |
国际化名称。 |
- |
参数名称 |
类型 |
参数值域 |
默认值 |
参数说明 |
参数示例 |
---|---|---|---|---|---|
securityInterZones |
ARRAY_REFERENCE |
0-5个列表项,详细请参见表15。 |
安全域间列表,创建修改时仅支持配置一组。 |
- |
参数名称 |
类型 |
参数值域 |
默认值 |
参数说明 |
参数示例 |
---|---|---|---|---|---|
SecurityInterZone |
array<string> |
2 个列表项。每个列表项1~63个字符。 |
- |
- |
["test_1"] |
参数名称 |
类型 |
参数值域 |
默认值 |
参数说明 |
参数示例 |
---|---|---|---|---|---|
errcode |
string |
- |
- |
错误码。 |
"0x00c8000c" |
errmsg |
string |
- |
- |
错误信息。 |
"The parameter is invalid." |
data |
REFERENCE |
详细请参见表10。 |
- |
- |
返回状态码为400:请求参数错误,无响应体。
详细信息请参见实际响应消息体。
返回状态码为500:内部错误,无响应体。
详细信息请参见实际响应消息体。
响应示例
返回状态码为201:创建成功,响应体参考SecurityPolicyResponse。
HTTP/1.1 201 Created Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "", "success" : [ { "id" : "00000000-0000-0000-0000-000000000000", "vpnId" : "00000000-0000-0000-0000-000000000000", "name" : "test_1", "status" : 1, "isActive" : true, "internetToUserRules" : [ { "id" : "00000000-0000-0000-0000-000000000000", "priority" : 1, "action" : "deny", "protocolNum" : 6, "sourceIp" : "192.168.0.0/24", "targetIp" : "192.168.0.0/24", "sourcePort" : 6, "endSourcePort" : 6, "targetPort" : 6, "endTargetPort" : 6, "ipsProfile" : "strict", "avProfile" : "default", "urlProfile" : "default", "sourceIpAddressSets" : [ "sourceIpAddressSet" ], "targetIpAddressSets" : [ "targetIpAddressSet" ], "sourceGeoLocationSets" : [ { "key" : "", "name" : "" } ], "targetGeoLocationSets" : [ { "key" : "", "name" : "" } ], "sourceDomainSets" : [ "sourceDomainSet" ], "targetDomainSets" : [ "targetDomainSet" ], "sourceFeeds" : "ipFeed01", "ipFeed02" , "targetFeeds" : "ipFeed01", "ipFeed02" , "appGroups" : [ "appGroup" ], "effectiveTimeId" : "00000000-0000-0000-0000-000000000000", "effectiveTimeName" : "effectiveTimeName", "fileProfile" : "fileProfile01" } ], "userToInternetRules" : [ { "id" : "00000000-0000-0000-0000-000000000000", "priority" : 1, "action" : "deny", "protocolNum" : 6, "sourceIp" : "192.168.0.0/24", "targetIp" : "192.168.0.0/24", "sourcePort" : 6, "endSourcePort" : 6, "targetPort" : 6, "endTargetPort" : 6, "ipsProfile" : "strict", "avProfile" : "default", "urlProfile" : "default", "sourceIpAddressSets" : [ "sourceIpAddressSet" ], "targetIpAddressSets" : [ "targetIpAddressSet" ], "sourceGeoLocationSets" : [ { "key" : "", "name" : "" } ], "targetGeoLocationSets" : [ { "key" : "", "name" : "" } ], "sourceDomainSets" : [ "sourceDomainSet" ], "targetDomainSets" : [ "targetDomainSet" ], "sourceFeeds" : "ipFeed01", "ipFeed02" , "targetFeeds" : "ipFeed01", "ipFeed02" , "appGroups" : [ "appGroup" ], "effectiveTimeId" : "00000000-0000-0000-0000-000000000000", "effectiveTimeName" : "effectiveTimeName", "fileProfile" : "fileProfile01" } ], "policyType" : false, "securityZone" : { "securityInterZones" : [ [ "test_1" ] ] }, "enableSecurityZones" : true, "securityZones" : { "sourceZones" : [ "test_1" ], "destZones" : [ "test_2" ] } } ], "fail" : [ { "errcode" : "0x00c8000c", "errmsg" : "The parameter is invalid.", "data" : { "id" : "00000000-0000-0000-0000-000000000000", "vpnId" : "00000000-0000-0000-0000-000000000000", "name" : "test_1", "status" : 1, "isActive" : true, "internetToUserRules" : [ { "id" : "00000000-0000-0000-0000-000000000000", "priority" : 1, "action" : "deny", "protocolNum" : 6, "sourceIp" : "192.168.0.0/24", "targetIp" : "192.168.0.0/24", "sourcePort" : 6, "endSourcePort" : 6, "targetPort" : 6, "endTargetPort" : 6, "ipsProfile" : "strict", "avProfile" : "default", "urlProfile" : "default", "sourceIpAddressSets" : [ "sourceIpAddressSet" ], "targetIpAddressSets" : [ "targetIpAddressSet" ], "sourceGeoLocationSets" : [ { "key" : "", "name" : "" } ], "targetGeoLocationSets" : [ { "key" : "", "name" : "" } ], "sourceDomainSets" : [ "sourceDomainSet" ], "targetDomainSets" : [ "targetDomainSet" ], "sourceFeeds" : "ipFeed01", "ipFeed02" , "targetFeeds" : "ipFeed01", "ipFeed02" , "appGroups" : [ "appGroup" ], "effectiveTimeId" : "00000000-0000-0000-0000-000000000000", "effectiveTimeName" : "effectiveTimeName", "fileProfile" : "fileProfile01" } ], "userToInternetRules" : [ { "id" : "00000000-0000-0000-0000-000000000000", "priority" : 1, "action" : "deny", "protocolNum" : 6, "sourceIp" : "192.168.0.0/24", "targetIp" : "192.168.0.0/24", "sourcePort" : 6, "endSourcePort" : 6, "targetPort" : 6, "endTargetPort" : 6, "ipsProfile" : "strict", "avProfile" : "default", "urlProfile" : "default", "sourceIpAddressSets" : [ "sourceIpAddressSet" ], "targetIpAddressSets" : [ "targetIpAddressSet" ], "sourceGeoLocationSets" : [ { "key" : "", "name" : "" } ], "targetGeoLocationSets" : [ { "key" : "", "name" : "" } ], "sourceDomainSets" : [ "sourceDomainSet" ], "targetDomainSets" : [ "targetDomainSet" ], "sourceFeeds" : "ipFeed01", "ipFeed02" , "targetFeeds" : "ipFeed01", "ipFeed02" , "appGroups" : [ "appGroup" ], "effectiveTimeId" : "00000000-0000-0000-0000-000000000000", "effectiveTimeName" : "effectiveTimeName", "fileProfile" : "fileProfile01" } ], "policyType" : false, "securityZone" : { "securityInterZones" : [ [ "test_1" ] ] }, "enableSecurityZones" : true, "securityZones" : { "sourceZones" : [ "test_1" ], "destZones" : [ "test_2" ] } } } ] }
返回状态码为400:请求参数错误,无响应体。
HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
返回状态码为500:内部错误,无响应体。
HTTP/1.1 500 Internal Server Error Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive