@@ -85,9 +85,7 @@ public ApiResponse excludedFromScan() throws ClientApiException {
85
85
return api .callApi ("ascan" , "view" , "excludedFromScan" , null );
86
86
}
87
87
88
- /**
89
- * Gets the scanners, optionally, of the given scan policy and/or scanner policy/category ID.
90
- */
88
+ /** Gets the scan rules, optionally, of the given scan policy or scanner policy/category ID. */
91
89
public ApiResponse scanners (String scanpolicyname , String policyid ) throws ClientApiException {
92
90
Map <String , String > map = new HashMap <>();
93
91
if (scanpolicyname != null ) {
@@ -253,9 +251,9 @@ public ApiResponse scan(
253
251
}
254
252
255
253
/**
256
- * Runs the active scanner against the given URL and/ or Context. Optionally, the 'recurse'
257
- * parameter can be used to scan URLs under the given URL, the parameter 'inScopeOnly' can be
258
- * used to constrain the scan to URLs that are in scope (ignored if a Context is specified), the
254
+ * Runs the active scanner against the given URL or Context. Optionally, the 'recurse' parameter
255
+ * can be used to scan URLs under the given URL, the parameter 'inScopeOnly' can be used to
256
+ * constrain the scan to URLs that are in scope (ignored if a Context is specified), the
259
257
* parameter 'scanPolicyName' allows to specify the scan policy (if none is given it uses the
260
258
* default scan policy), the parameters 'method' and 'postData' allow to select a given request
261
259
* in conjunction with the given URL.
@@ -385,7 +383,7 @@ public ApiResponse excludeFromScan(String regex) throws ClientApiException {
385
383
}
386
384
387
385
/**
388
- * Enables all scanners of the scan policy with the given name, or the default if none given.
386
+ * Enables all scan rules of the scan policy with the given name, or the default if none given.
389
387
*/
390
388
public ApiResponse enableAllScanners (String scanpolicyname ) throws ClientApiException {
391
389
Map <String , String > map = new HashMap <>();
@@ -396,7 +394,7 @@ public ApiResponse enableAllScanners(String scanpolicyname) throws ClientApiExce
396
394
}
397
395
398
396
/**
399
- * Disables all scanners of the scan policy with the given name, or the default if none given.
397
+ * Disables all scan rules of the scan policy with the given name, or the default if none given.
400
398
*/
401
399
public ApiResponse disableAllScanners (String scanpolicyname ) throws ClientApiException {
402
400
Map <String , String > map = new HashMap <>();
@@ -407,8 +405,8 @@ public ApiResponse disableAllScanners(String scanpolicyname) throws ClientApiExc
407
405
}
408
406
409
407
/**
410
- * Enables the scanners with the given IDs (comma separated list of IDs) of the scan policy with
411
- * the given name, or the default if none given.
408
+ * Enables the scan rules with the given IDs (comma separated list of IDs) of the scan policy
409
+ * with the given name, or the default if none given.
412
410
*/
413
411
public ApiResponse enableScanners (String ids , String scanpolicyname ) throws ClientApiException {
414
412
Map <String , String > map = new HashMap <>();
@@ -420,7 +418,7 @@ public ApiResponse enableScanners(String ids, String scanpolicyname) throws Clie
420
418
}
421
419
422
420
/**
423
- * Disables the scanners with the given IDs (comma separated list of IDs) of the scan policy
421
+ * Disables the scan rules with the given IDs (comma separated list of IDs) of the scan policy
424
422
* with the given name, or the default if none given.
425
423
*/
426
424
public ApiResponse disableScanners (String ids , String scanpolicyname )
@@ -487,10 +485,6 @@ public ApiResponse setScannerAlertThreshold(
487
485
return api .callApi ("ascan" , "action" , "setScannerAlertThreshold" , map );
488
486
}
489
487
490
- public ApiResponse addScanPolicy (String scanpolicyname ) throws ClientApiException {
491
- return addScanPolicy (scanpolicyname , null , null );
492
- }
493
-
494
488
public ApiResponse addScanPolicy (
495
489
String scanpolicyname , String alertthreshold , String attackstrength )
496
490
throws ClientApiException {
0 commit comments