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, setScannerAlertThreshold
public Pscan(ClientApi api)
public ApiResponse scanOnlyInScope() throws ClientApiException
ClientApiException
public ApiResponse recordsToScan() throws ClientApiException
ClientApiException
public ApiResponse scanners() throws ClientApiException
ClientApiException
public ApiResponse currentRule() throws ClientApiException
ClientApiException
public ApiResponse maxAlertsPerRule() throws ClientApiException
ClientApiException
public ApiResponse setEnabled(java.lang.String enabled) throws ClientApiException
ClientApiException
public ApiResponse setScanOnlyInScope(java.lang.String onlyinscope) throws ClientApiException
ClientApiException
public ApiResponse enableAllScanners() throws ClientApiException
ClientApiException
public ApiResponse disableAllScanners() throws ClientApiException
ClientApiException
public ApiResponse enableScanners(java.lang.String ids) throws ClientApiException
ClientApiException
public ApiResponse disableScanners(java.lang.String ids) throws ClientApiException
ClientApiException
public ApiResponse setScannerAlertThreshold(java.lang.String id, java.lang.String alertthreshold) throws ClientApiException
ClientApiException
public ApiResponse setMaxAlertsPerRule(java.lang.String maxalerts) throws ClientApiException
ClientApiException