summaryrefslogtreecommitdiff
path: root/test/resource/HitPolicyResult.json
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2024-08-14 17:57:30 +0800
committerfengweihao <[email protected]>2024-08-14 17:57:30 +0800
commit6dc39cc9223d809340ec9b99668dea79dd67baf8 (patch)
treec4877e0f50988a13af2a7cbeaf87569904cda2f1 /test/resource/HitPolicyResult.json
parent1b76ae68fb4a77164c1696f23c809f4d43eb9ace (diff)
日志接口支持按文件大小存储日志,并对 table_name 表的结构体进行了优化
Diffstat (limited to 'test/resource/HitPolicyResult.json')
-rw-r--r--test/resource/HitPolicyResult.json158
1 files changed, 158 insertions, 0 deletions
diff --git a/test/resource/HitPolicyResult.json b/test/resource/HitPolicyResult.json
index db4da0c..a617203 100644
--- a/test/resource/HitPolicyResult.json
+++ b/test/resource/HitPolicyResult.json
@@ -191,6 +191,164 @@
}
},
"success": true
+ },
+ {
+ "code": 200,
+ "msg": "Success",
+ "data": {
+ "hitPolicyList": [
+ {
+ "id": 1024,
+ "policyName": "",
+ "is_execute_policy": true,
+ "top_object_list": [
+ {
+ "object_id": 10231,
+ "table_name": "ATTR_SOURCE_IP",
+ "not_flag": 0,
+ "nth_clause": 0
+ },
+ {
+ "object_id": 10232,
+ "table_name": "ATTR_DESTINATION_IP",
+ "not_flag": 0,
+ "nth_clause": 1
+ },
+ {
+ "object_id": 10234,
+ "table_name": "ATTR_SERVER_FQDN",
+ "not_flag": 0,
+ "nth_clause": 2
+ },
+ {
+ "object_id": 10235,
+ "table_name": "ATTR_SSL_SAN",
+ "not_flag": 0,
+ "nth_clause": 3
+ }
+ ]
+ },
+ {
+ "id": 1023,
+ "policyName": "",
+ "is_execute_policy": false,
+ "top_object_list": [
+ {
+ "object_id": 10231,
+ "table_name": "ATTR_SOURCE_IP",
+ "not_flag": 0,
+ "nth_clause": 0
+ },
+ {
+ "object_id": 10232,
+ "table_name": "ATTR_DESTINATION_IP",
+ "not_flag": 0,
+ "nth_clause": 1
+ },
+ {
+ "object_id": 10234,
+ "table_name": "ATTR_SERVER_FQDN",
+ "not_flag": 0,
+ "nth_clause": 2
+ },
+ {
+ "object_id": 10235,
+ "table_name": "ATTR_SSL_SAN",
+ "not_flag": 0,
+ "nth_clause": 3
+ }
+ ]
+ }
+ ],
+ "verify_session": {
+ "attributes": [
+ {
+ "attribute_type": "ip",
+ "table_name": "ATTR_SOURCE_IP",
+ "attribute_name": "source",
+ "attribute_value": {
+ "ip": "192.168.0.2",
+ "port": "8080",
+ "addr_type": 4
+ },
+ "hit_paths": [
+ {
+ "item_id": 2,
+ "superior_object_id": 10231
+ }
+ ]
+ },
+ {
+ "attribute_type": "ip",
+ "table_name": "ATTR_DESTINATION_IP",
+ "attribute_name": "destination",
+ "attribute_value": {
+ "ip": "192.168.0.3",
+ "addr_type": 4
+ },
+ "hit_paths": [
+ {
+ "item_id": 3,
+ "superior_object_id": 10232
+ }
+ ]
+ },
+ {
+ "attribute_type": "string",
+ "table_name": "ATTR_SERVER_FQDN",
+ "attribute_name": "server_fqdn",
+ "attribute_value": {
+ "string": "www.baidu.com"
+ },
+ "hit_paths": [
+ {
+ "entry_id": 2,
+ "tag_id": 2
+ },
+ {
+ "entry_id": 2,
+ "tag_id": 3
+ },
+ {
+ "item_id": 5,
+ "superior_object_id": 10235
+ },
+ {
+ "item_id": 4,
+ "superior_object_id": 10234
+ }
+ ]
+ },
+ {
+ "attribute_type": "string",
+ "table_name": "ATTR_SSL_SAN",
+ "attribute_name": "ssl_san",
+ "attribute_value": {
+ "string": "www.baidu.com"
+ },
+ "hit_paths": [
+ {
+ "entry_id": 2,
+ "tag_id": 2
+ },
+ {
+ "entry_id": 2,
+ "tag_id": 3
+ },
+ {
+ "item_id": 5,
+ "superior_object_id": 10235
+ },
+ {
+ "item_id": 4,
+ "superior_object_id": 10234
+ }
+ ]
+ }
+ ]
+ }
+ },
+ "success": true
}
]
} \ No newline at end of file