You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rust/doc/openapi.yml
+59Lines changed: 59 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -195,6 +195,23 @@ paths:
195
195
"400":
196
196
description: "Bad Request body"
197
197
198
+
/scans/preferences:
199
+
get:
200
+
description: "Get all preferences available for a scan. These can be set, when creating a scan via scan_preferences."
201
+
operationId: "get_preferences"
202
+
tags:
203
+
- "scan"
204
+
responses:
205
+
"200":
206
+
description: "Get Preferences"
207
+
content:
208
+
application/json:
209
+
schema:
210
+
$ref: "#/components/schemas/Preferences"
211
+
examples:
212
+
preferences:
213
+
$ref: "#/components/examples/preferences"
214
+
198
215
/scans/{id}:
199
216
get:
200
217
description: "Get a scan from the scan manager."
@@ -869,6 +886,30 @@ components:
869
886
required:
870
887
- "action"
871
888
889
+
Preferences:
890
+
description: "List of preferences available"
891
+
type: "array"
892
+
items:
893
+
type: "object"
894
+
properties:
895
+
id:
896
+
description: "ID of the preference"
897
+
type: "string"
898
+
type:
899
+
description: "Type of the preference"
900
+
name:
901
+
description: "Display name for the preference"
902
+
type: "string"
903
+
description:
904
+
description: "Description of the preference"
905
+
type: "string"
906
+
default:
907
+
description: "Default value for scans"
908
+
type: "string"
909
+
values:
910
+
description: "Allowed values"
911
+
type: "string"
912
+
872
913
examples:
873
914
scan_simple:
874
915
description: "A simple example for creating a scan."
@@ -1249,3 +1290,21 @@ components:
1249
1290
],
1250
1291
},
1251
1292
]
1293
+
1294
+
preferences:
1295
+
description: "A example with a list of preferences"
1296
+
value:
1297
+
[
1298
+
{
1299
+
"id": "optimize_test",
1300
+
"name": "Optimize Test",
1301
+
"default": true,
1302
+
"description": "By default, optimize_test is enabled which means openvas does trust the remote host banners and is only launching plugins against the services they have been designed to check. For example it will check a web server claiming to be IIS only for IIS related flaws but will skip plugins testing for Apache flaws, and so on. This default behavior is used to optimize the scanning performance and to avoid false positives. If you are not sure that the banners of the remote host have been tampered with, you can disable this option.",
1303
+
},
1304
+
{
1305
+
"id": "plugins_timeout",
1306
+
"name": "Plugins Timeout",
1307
+
"default": 5,
1308
+
"description": "This is the maximum lifetime, in seconds of a plugin. It may happen that some plugins are slow because of the way they are written or the way the remote server behaves. This option allows you to make sure your scan is never caught in an endless loop because of a non-finishing plugin. Doesn't affect ACT_SCANNER plugins, use 'ACT_SCANNER plugins timeout' for them instead.",
description: "A example with a list of preferences"
873
+
value:
874
+
[
875
+
{
876
+
"id": "optimize_test",
877
+
"name": "Optimize Test",
878
+
"default": true,
879
+
"description": "By default, optimize_test is enabled which means openvas does trust the remote host banners and is only launching plugins against the services they have been designed to check. For example it will check a web server claiming to be IIS only for IIS related flaws but will skip plugins testing for Apache flaws, and so on. This default behavior is used to optimize the scanning performance and to avoid false positives. If you are not sure that the banners of the remote host have been tampered with, you can disable this option.",
880
+
},
881
+
{
882
+
"id": "plugins_timeout",
883
+
"name": "Plugins Timeout",
884
+
"default": 5,
885
+
"description": "This is the maximum lifetime, in seconds of a plugin. It may happen that some plugins are slow because of the way they are written or the way the remote server behaves. This option allows you to make sure your scan is never caught in an endless loop because of a non-finishing plugin. Doesn't affect ACT_SCANNER plugins, use 'ACT_SCANNER plugins timeout' for them instead.",
0 commit comments