This function gets the available local paths that a cPanel account is permitted to scan.
Note:
The system determines the available scan types based on what the system administrator has set in WHM's Configure ClamAV® page.
Note:
You must run the APIs in this order:
ClamScanner::start_scan
to start the virus scan.ClamScanner::get_scan_status
in a loop until the scan is finished.ClamScanner::list_infected_files
to get a report of the complete list of infected files.ClamScanner::disinfect_files
to queue the disinfection of the files.ClamScanner::check_disinfection_status
in a loop until you get a done status.uapi --output=jsonpretty \ --user=username \ ClamScanner \ get_scan_paths
{- "apiversion": 3,
- "func": "get_scan_paths",
- "module": "ClamScanner",
- "result": {
- "data": {
- "id": "home",
- "message": "Scan Entire Home Directory"
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}