Package org.zaproxy.clientapi.gen
Class Pscan
- java.lang.Object
-
- org.zaproxy.clientapi.gen.deprecated.PscanDeprecated
-
- org.zaproxy.clientapi.gen.Pscan
-
public class Pscan extends PscanDeprecated
This file was automatically generated.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ApiResponseclearQueue()Clears the passive scan queue.ApiResponsecurrentRule()Deprecated.Use the currentTasks view instead.ApiResponsecurrentTasks()Show information about the passive scan tasks currently being run (if any).ApiResponsedisableAllScanners()Disables all passive scan rulesApiResponsedisableAllTags()Disables all passive scan tags.ApiResponsedisableScanners(java.lang.String ids)Disables all passive scan rules with the given IDs (comma separated list of IDs)ApiResponseenableAllScanners()Enables all passive scan rulesApiResponseenableAllTags()Enables all passive scan tags.ApiResponseenableScanners(java.lang.String ids)Enables all passive scan rules with the given IDs (comma separated list of IDs)ApiResponsemaxAlertsPerRule()Gets the maximum number of alerts a passive scan rule should raise.ApiResponserecordsToScan()The number of records the passive scanner still has to scanApiResponsescanners()Lists all passive scan rules with their ID, name, enabled state, and alert threshold.ApiResponsescanOnlyInScope()Tells whether or not the passive scan should be performed only on messages that are in scope.ApiResponsesetEnabled(java.lang.String enabled)Sets whether or not the passive scanning is enabled (Note: the enabled state is not persisted).ApiResponsesetMaxAlertsPerRule(java.lang.String maxalerts)Sets the maximum number of alerts a passive scan rule should raise.ApiResponsesetScannerAlertThreshold(java.lang.String id, java.lang.String alertthreshold)Sets the alert threshold of the passive scan rule with the given ID, accepted values for alert threshold: OFF, DEFAULT, LOW, MEDIUM and HIGHApiResponsesetScanOnlyInScope(java.lang.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 Detail
-
Pscan
public Pscan(ClientApi api)
-
-
Method Detail
-
scanOnlyInScope
public ApiResponse scanOnlyInScope() throws ClientApiException
Tells whether or not the passive scan should be performed only on messages that are in scope.- Throws:
ClientApiException
-
recordsToScan
public ApiResponse recordsToScan() throws ClientApiException
The number of records the passive scanner still has to scan- Throws:
ClientApiException
-
scanners
public ApiResponse scanners() throws ClientApiException
Lists all passive scan rules with their ID, name, enabled state, and alert threshold.- Throws:
ClientApiException
-
currentRule
@Deprecated public ApiResponse currentRule() throws ClientApiException
Deprecated.Use the currentTasks view instead.Show information about the passive scan rule currently being run (if any).- Throws:
ClientApiException
-
currentTasks
public ApiResponse currentTasks() throws ClientApiException
Show information about the passive scan tasks currently being run (if any).- Throws:
ClientApiException
-
maxAlertsPerRule
public ApiResponse maxAlertsPerRule() throws ClientApiException
Gets the maximum number of alerts a passive scan rule should raise.- Throws:
ClientApiException
-
setEnabled
public ApiResponse setEnabled(java.lang.String enabled) throws ClientApiException
Sets whether or not the passive scanning is enabled (Note: the enabled state is not persisted).- Throws:
ClientApiException
-
setScanOnlyInScope
public ApiResponse setScanOnlyInScope(java.lang.String onlyinscope) throws ClientApiException
Sets whether or not the passive scan should be performed only on messages that are in scope.- Throws:
ClientApiException
-
enableAllScanners
public ApiResponse enableAllScanners() throws ClientApiException
Enables all passive scan rules- Throws:
ClientApiException
-
disableAllScanners
public ApiResponse disableAllScanners() throws ClientApiException
Disables all passive scan rules- Throws:
ClientApiException
-
enableScanners
public ApiResponse enableScanners(java.lang.String ids) throws ClientApiException
Enables all passive scan rules with the given IDs (comma separated list of IDs)- Throws:
ClientApiException
-
disableScanners
public ApiResponse disableScanners(java.lang.String ids) throws ClientApiException
Disables all passive scan rules with the given IDs (comma separated list of IDs)- Throws:
ClientApiException
-
setScannerAlertThreshold
public ApiResponse setScannerAlertThreshold(java.lang.String id, java.lang.String alertthreshold) throws ClientApiException
Sets the alert threshold of the passive scan rule with the given ID, accepted values for alert threshold: OFF, DEFAULT, LOW, MEDIUM and HIGH- Throws:
ClientApiException
-
setMaxAlertsPerRule
public ApiResponse setMaxAlertsPerRule(java.lang.String maxalerts) throws ClientApiException
Sets the maximum number of alerts a passive scan rule should raise.- Throws:
ClientApiException
-
disableAllTags
public ApiResponse disableAllTags() throws ClientApiException
Disables all passive scan tags.- Throws:
ClientApiException
-
enableAllTags
public ApiResponse enableAllTags() throws ClientApiException
Enables all passive scan tags.- Throws:
ClientApiException
-
clearQueue
public ApiResponse clearQueue() throws ClientApiException
Clears the passive scan queue.- Throws:
ClientApiException
-
-