public class Pscan extends PscanDeprecated
| Modifier and Type | Method and Description |
|---|---|
ApiResponse |
clearQueue()
Clears the passive scan queue.
|
ApiResponse |
currentRule()
Deprecated.
Use the currentTasks view instead.
|
ApiResponse |
currentTasks()
Show information about the passive scan tasks currently being run (if any).
|
ApiResponse |
disableAllScanners()
Disables all passive scan rules
|
ApiResponse |
disableAllTags()
Disables all passive scan tags.
|
ApiResponse |
disableScanners(java.lang.String ids)
Disables all passive scan rules with the given IDs (comma separated list of IDs)
|
ApiResponse |
enableAllScanners()
Enables all passive scan rules
|
ApiResponse |
enableAllTags()
Enables all passive scan tags.
|
ApiResponse |
enableScanners(java.lang.String ids)
Enables all passive scan rules 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 scan rules with their 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
ClientApiException@Deprecated public ApiResponse currentRule() throws ClientApiException
ClientApiExceptionpublic ApiResponse currentTasks() 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
ClientApiExceptionpublic ApiResponse disableAllTags() throws ClientApiException
ClientApiExceptionpublic ApiResponse enableAllTags() throws ClientApiException
ClientApiExceptionpublic ApiResponse clearQueue() throws ClientApiException
ClientApiException