更新接口

dev
TANGWY 4 months ago
parent b641f2b610
commit a58d9376d7
  1. 91
      src/app/routes/config/service/https/notice.service.ts

@ -213,6 +213,9 @@ export class NoticeService {
// 400000 // 400000
// ] // ]
// } // }
// response
//{"message": "The whitelist is added", "code": 200, "data": {"id": 6}}
const url = '/ditingEngine/diting/global/whitelist_add/'; const url = '/ditingEngine/diting/global/whitelist_add/';
return this.httpService.post(url,{}, params); return this.httpService.post(url,{}, params);
} }
@ -235,6 +238,13 @@ export class NoticeService {
// "url": "http://baid.com" // "url": "http://baid.com"
// }, // },
// "type": 0 // "type": 0
// }
//response:
// {
// "message": "谛听引擎-添加灰名单成功",
// "code": 200,
// "data": null
// } // }
const url = '/ditingEngine/diting/global/whitelist_add'; const url = '/ditingEngine/diting/global/whitelist_add';
return this.httpService.post(url,{}, params); return this.httpService.post(url,{}, params);
@ -243,41 +253,45 @@ export class NoticeService {
// 添加白名单灰名单默认类型 // 添加白名单灰名单默认类型
getDefaultRule(){ getDefaultRule(){
// { // {
// "white_list": { // "message": "success",
// "ip": [ // "code": 200,
// 400000, // "data": {
// 400001 // "white_list": {
// ], // "ip": [
// "account": [ // 400000,
// 400000, // 400001
// 400001 // ],
// ], // "account": [
// "interface": [ // 400000,
// 400000, // 400001
// 400001 // ],
// ], // "interface": [
// "menu": [ // 400000,
// 400000, // 400001
// 400001 // ],
// ] // "menu": [
// }, // 400000,
// "grey_list": { // 400001
// "ip": [ // ]
// 400000, // },
// 400001 // "grey_list": {
// ], // "ip": [
// "account": [ // 400000,
// 400000, // 400001
// 400001 // ],
// ], // "account": [
// "interface": [ // 400000,
// 400000, // 400001
// 400001 // ],
// ], // "interface": [
// "menu": [ // 400000,
// 400000, // 400001
// 400001 // ],
// ] // "menu": [
// 400000,
// 400001
// ]
// }
// } // }
// } // }
const url = '/uebaMetricsAnalysis/ueba_metrics/get_default_rule/'; const url = '/uebaMetricsAnalysis/ueba_metrics/get_default_rule/';
@ -293,6 +307,13 @@ export class NoticeService {
// "adg":21 // "adg":21
// } // }
// } // }
// response:
// {
// "message": "success",
// "code": 200,
// "data": "ok"
// }
const url = '/uebaMetricsAnalysis/ueba_metrics/write_audit_log/'; const url = '/uebaMetricsAnalysis/ueba_metrics/write_audit_log/';
return this.httpService.post(url,{},param); return this.httpService.post(url,{},param);
} }

Loading…
Cancel
Save