[VS] Add historical reports. (#8015) (#7950)

This commit is contained in:
Nicolo Maio 2023-11-20 17:06:23 +01:00
parent c7e7ee70f2
commit 34f7a42308
33 changed files with 1885 additions and 466 deletions

View file

@ -23,7 +23,11 @@ if single_host then
rest_utils.answer(rest_utils.consts.err.invalid_args)
end
local res = vs_utils.schedule_ondemand_single_host_scan(scan_type, host, ports, scan_id)
local is_single_scan = single_host
local is_all = not single_host
local is_periodic = not single_host
local res = vs_utils.schedule_ondemand_single_host_scan(scan_type, host, ports, scan_id, is_periodic, is_all, is_single_scan)
if res then
rest_utils.answer(rest_utils.consts.success.ok)