@@ -85,9 +85,7 @@ public ApiResponse excludedFromScan() throws ClientApiException {
8585 return api .callApi ("ascan" , "view" , "excludedFromScan" , null );
8686 }
8787
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. */
9189 public ApiResponse scanners (String scanpolicyname , String policyid ) throws ClientApiException {
9290 Map <String , String > map = new HashMap <>();
9391 if (scanpolicyname != null ) {
@@ -253,9 +251,9 @@ public ApiResponse scan(
253251 }
254252
255253 /**
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
259257 * parameter 'scanPolicyName' allows to specify the scan policy (if none is given it uses the
260258 * default scan policy), the parameters 'method' and 'postData' allow to select a given request
261259 * in conjunction with the given URL.
@@ -385,7 +383,7 @@ public ApiResponse excludeFromScan(String regex) throws ClientApiException {
385383 }
386384
387385 /**
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.
389387 */
390388 public ApiResponse enableAllScanners (String scanpolicyname ) throws ClientApiException {
391389 Map <String , String > map = new HashMap <>();
@@ -396,7 +394,7 @@ public ApiResponse enableAllScanners(String scanpolicyname) throws ClientApiExce
396394 }
397395
398396 /**
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.
400398 */
401399 public ApiResponse disableAllScanners (String scanpolicyname ) throws ClientApiException {
402400 Map <String , String > map = new HashMap <>();
@@ -407,8 +405,8 @@ public ApiResponse disableAllScanners(String scanpolicyname) throws ClientApiExc
407405 }
408406
409407 /**
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.
412410 */
413411 public ApiResponse enableScanners (String ids , String scanpolicyname ) throws ClientApiException {
414412 Map <String , String > map = new HashMap <>();
@@ -420,7 +418,7 @@ public ApiResponse enableScanners(String ids, String scanpolicyname) throws Clie
420418 }
421419
422420 /**
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
424422 * with the given name, or the default if none given.
425423 */
426424 public ApiResponse disableScanners (String ids , String scanpolicyname )
@@ -487,10 +485,6 @@ public ApiResponse setScannerAlertThreshold(
487485 return api .callApi ("ascan" , "action" , "setScannerAlertThreshold" , map );
488486 }
489487
490- public ApiResponse addScanPolicy (String scanpolicyname ) throws ClientApiException {
491- return addScanPolicy (scanpolicyname , null , null );
492- }
493-
494488 public ApiResponse addScanPolicy (
495489 String scanpolicyname , String alertthreshold , String attackstrength )
496490 throws ClientApiException {
0 commit comments