Class Pscan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClears the passive scan queue.Deprecated.Shows information about the passive scan tasks currently being run (if any).Disables all passive scan rules.Disables all passive scan tags.disableScanners
(String ids) Disables passive scan rules.Enables all passive scan rules.Enables all passive scan tags.enableScanners
(String ids) Enables passive scan rules.Gets the maximum number of alerts a passive scan rule should raise.The number of records the passive scanner still has to scan.scanners()
Lists all passive scan rules with their ID, name, enabled state, and alert threshold.Tells whether or not the passive scan should be performed only on messages that are in scope.setEnabled
(String enabled) Sets whether or not the passive scanning is enabled (Note: the enabled state is not persisted).setMaxAlertsPerRule
(String maxalerts) Sets the maximum number of alerts a passive scan rule can raise.setScannerAlertThreshold
(String id, String alertthreshold) Sets the alert threshold of a passive scan rule.setScanOnlyInScope
(String onlyinscope) Sets whether or not the passive scan should be performed only on messages that are in scope.Methods inherited from class org.zaproxy.clientapi.gen.deprecated.PscanDeprecated
disableAllScanners, disableScanners, enableAllScanners, enableScanners, setEnabled, setScannerAlertThreshold
-
Constructor Details
-
Pscan
-
-
Method Details
-
scanOnlyInScope
Tells whether or not the passive scan should be performed only on messages that are in scope.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
recordsToScan
The number of records the passive scanner still has to scan.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
scanners
Lists all passive scan rules with their ID, name, enabled state, and alert threshold.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
currentRule
Deprecated.Shows information about the passive scan rule currently being run (if any).This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
currentTasks
Shows information about the passive scan tasks currently being run (if any).This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
maxAlertsPerRule
Gets the maximum number of alerts a passive scan rule should raise.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setEnabled
Sets whether or not the passive scanning is enabled (Note: the enabled state is not persisted).This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setScanOnlyInScope
Sets whether or not the passive scan should be performed only on messages that are in scope.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
enableAllScanners
Enables all passive scan rules.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
disableAllScanners
Disables all passive scan rules.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
enableScanners
Enables passive scan rules.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
disableScanners
Disables passive scan rules.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setScannerAlertThreshold
public ApiResponse setScannerAlertThreshold(String id, String alertthreshold) throws ClientApiException Sets the alert threshold of a passive scan rule.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setMaxAlertsPerRule
Sets the maximum number of alerts a passive scan rule can raise.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
disableAllTags
Disables all passive scan tags.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
enableAllTags
Enables all passive scan tags.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
clearQueue
Clears the passive scan queue.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-