public class Pscan extends PscanDeprecated
| Modifier and Type | Method and Description |
|---|---|
ApiResponse |
currentRule()
Show information about the passive scan rule currently being run (if any).
|
ApiResponse |
disableAllScanners()
Disables all passive scanners
|
ApiResponse |
disableScanners(java.lang.String ids)
Disables all passive scanners with the given IDs (comma separated list of IDs)
|
ApiResponse |
enableAllScanners()
Enables all passive scanners
|
ApiResponse |
enableScanners(java.lang.String ids)
Enables all passive scanners with the given IDs (comma separated list of IDs)
|
ApiResponse |
maxAlertsPerRule()
Gets the maximum number of alerts a passive scan rule should raise.
|
ApiResponse |
recordsToScan()
The number of records the passive scanner still has to scan
|
ApiResponse |
scanners()
Lists all passive scanners with its ID, name, enabled state and alert threshold.
|
ApiResponse |
scanOnlyInScope()
Tells whether or not the passive scan should be performed only on messages that are in scope.
|
ApiResponse |
setEnabled(java.lang.String enabled)
Sets whether or not the passive scanning is enabled (Note: the enabled state is not
persisted).
|
ApiResponse |
setMaxAlertsPerRule(java.lang.String maxalerts)
Sets the maximum number of alerts a passive scan rule should raise.
|
ApiResponse |
setScannerAlertThreshold(java.lang.String id,
java.lang.String alertthreshold)
Sets the alert threshold of the passive scanner with the given ID, accepted values for alert
threshold: OFF, DEFAULT, LOW, MEDIUM and HIGH
|
ApiResponse |
setScanOnlyInScope(java.lang.String onlyinscope)
Sets whether or not the passive scan should be performed only on messages that are in scope.
|
disableAllScanners, disableScanners, enableAllScanners, enableScanners, setEnabled, setScannerAlertThresholdpublic Pscan(ClientApi api)
public ApiResponse scanOnlyInScope() throws ClientApiException
ClientApiExceptionpublic ApiResponse recordsToScan() throws ClientApiException
ClientApiExceptionpublic ApiResponse scanners() throws ClientApiException
ClientApiExceptionpublic ApiResponse currentRule() throws ClientApiException
ClientApiExceptionpublic ApiResponse maxAlertsPerRule() throws ClientApiException
ClientApiExceptionpublic ApiResponse setEnabled(java.lang.String enabled) throws ClientApiException
ClientApiExceptionpublic ApiResponse setScanOnlyInScope(java.lang.String onlyinscope) throws ClientApiException
ClientApiExceptionpublic ApiResponse enableAllScanners() throws ClientApiException
ClientApiExceptionpublic ApiResponse disableAllScanners() throws ClientApiException
ClientApiExceptionpublic ApiResponse enableScanners(java.lang.String ids) throws ClientApiException
ClientApiExceptionpublic ApiResponse disableScanners(java.lang.String ids) throws ClientApiException
ClientApiExceptionpublic ApiResponse setScannerAlertThreshold(java.lang.String id, java.lang.String alertthreshold) throws ClientApiException
ClientApiExceptionpublic ApiResponse setMaxAlertsPerRule(java.lang.String maxalerts) throws ClientApiException
ClientApiException