ClamScanner
Antivirus Protection (ClamAV)
Return virus scan types
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:
- Run ClamScanner::start_scan to start the virus scan.
- Run ClamScanner::get_scan_status in a loop until the scan is finished.
- Run ClamScanner::list_infected_files to get a report of the complete list of infected files.
- Decide how you want to handle each infected file.
- Run ClamScanner::disinfect_files to queue the disinfection of the files.
- Run ClamScanner::check_disinfection_status in a loop until you get a done status.
get/ClamScanner/get_scan_paths
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "get_scan_paths",
"module": "ClamScanner",
"result": {
"data": {
"id": "home",
"message": "Scan Entire Home Directory"
},
"status": 1
}
}