更新接口

dev
TANGWY 4 months ago
parent b641f2b610
commit a58d9376d7
  1. 21
      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,6 +253,9 @@ export class NoticeService {
// 添加白名单灰名单默认类型 // 添加白名单灰名单默认类型
getDefaultRule(){ getDefaultRule(){
// { // {
// "message": "success",
// "code": 200,
// "data": {
// "white_list": { // "white_list": {
// "ip": [ // "ip": [
// 400000, // 400000,
@ -279,6 +292,7 @@ export class NoticeService {
// 400001 // 400001
// ] // ]
// } // }
// }
// } // }
const url = '/uebaMetricsAnalysis/ueba_metrics/get_default_rule/'; const url = '/uebaMetricsAnalysis/ueba_metrics/get_default_rule/';
return this.httpService.get(url); return this.httpService.get(url);
@ -292,6 +306,13 @@ export class NoticeService {
// "name":"xx", // "name":"xx",
// "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