@@ -44,7 +44,8 @@ def get_health_alive(
44
44
Gets the "alive" health status of the scanner.
45
45
46
46
Args:
47
- raise_for_status: Whether to raise an error if scanner responded with a non-success HTTP status code.
47
+ raise_for_status: Whether to raise an error if scanner responded with a
48
+ non-success HTTP status code.
48
49
49
50
Return:
50
51
The HTTP response. See GET /health/alive in the openvasd API documentation.
@@ -60,7 +61,8 @@ def get_health_ready(
60
61
Gets the "ready" health status of the scanner.
61
62
62
63
Args:
63
- raise_for_status: Whether to raise an error if scanner responded with a non-success HTTP status code.
64
+ raise_for_status: Whether to raise an error if scanner responded with a
65
+ non-success HTTP status code.
64
66
65
67
Return:
66
68
The HTTP response. See GET /health/ready in the openvasd API documentation.
@@ -76,7 +78,8 @@ def get_health_started(
76
78
Gets the "started" health status of the scanner.
77
79
78
80
Args:
79
- raise_for_status: Whether to raise an error if scanner responded with a non-success HTTP status code.
81
+ raise_for_status: Whether to raise an error if scanner responded with a
82
+ non-success HTTP status code.
80
83
81
84
Return:
82
85
The HTTP response. See GET /health/started in the openvasd API documentation.
@@ -92,7 +95,8 @@ def get_notus_os_list(
92
95
Gets the list of operating systems available in Notus.
93
96
94
97
Args:
95
- raise_for_status: Whether to raise an error if scanner responded with a non-success HTTP status code.
98
+ raise_for_status: Whether to raise an error if scanner responded with a
99
+ non-success HTTP status code.
96
100
97
101
Return:
98
102
The HTTP response. See GET /notus in the openvasd API documentation.
@@ -110,9 +114,11 @@ def run_notus_scan(
110
114
Gets the Notus results for a given operating system and list of packages.
111
115
112
116
Args:
113
- os: Name of the operating system as returned in the list returned by get_notus_os_products.
117
+ os: Name of the operating system as returned in the list returned by
118
+ get_notus_os_products.
114
119
package_list: List of package names to check.
115
- raise_for_status: Whether to raise an error if scanner responded with a non-success HTTP status code.
120
+ raise_for_status: Whether to raise an error if scanner responded with a
121
+ non-success HTTP status code.
116
122
117
123
Return:
118
124
The HTTP response. See POST /notus/{os} in the openvasd API documentation.
@@ -131,7 +137,8 @@ def get_scan_preferences(
131
137
Gets the list of available scan preferences.
132
138
133
139
Args:
134
- raise_for_status: Whether to raise an error if scanner responded with a non-success HTTP status code.
140
+ raise_for_status: Whether to raise an error if scanner responded with a
141
+ non-success HTTP status code.
135
142
136
143
Return:
137
144
The HTTP response. See POST /scans/preferences in the openvasd API documentation.
@@ -157,7 +164,8 @@ def create_scan(
157
164
target: The target definition for the scan.
158
165
vt_selection: The VT selection for the scan, including VT preferences.
159
166
scanner_params: The optional scanner parameters.
160
- raise_for_status: Whether to raise an error if scanner responded with a non-success HTTP status code.
167
+ raise_for_status: Whether to raise an error if scanner responded with a
168
+ non-success HTTP status code.
161
169
162
170
Return:
163
171
The HTTP response. See POST /scans in the openvasd API documentation.
@@ -180,7 +188,8 @@ def delete_scan(
180
188
181
189
Args:
182
190
scan_id: The id of the scan to perform the action on.
183
- raise_for_status: Whether to raise an error if scanner responded with a non-success HTTP status code.
191
+ raise_for_status: Whether to raise an error if scanner responded with a
192
+ non-success HTTP status code.
184
193
185
194
Return:
186
195
The HTTP response. See DELETE /scans/{id} in the openvasd API documentation.
@@ -195,7 +204,8 @@ def get_scans(self, *, raise_for_status: bool = False) -> HttpResponse:
195
204
Gets the list of available scans.
196
205
197
206
Args:
198
- raise_for_status: Whether to raise an error if scanner responded with a non-success HTTP status code.
207
+ raise_for_status: Whether to raise an error if scanner responded with a
208
+ non-success HTTP status code.
199
209
200
210
Return:
201
211
The HTTP response. See GET /scans in the openvasd API documentation.
@@ -210,7 +220,8 @@ def get_scan(
210
220
211
221
Args:
212
222
scan_id: The id of the scan to get.
213
- raise_for_status: Whether to raise an error if scanner responded with a non-success HTTP status code.
223
+ raise_for_status: Whether to raise an error if scanner responded with a
224
+ non-success HTTP status code.
214
225
215
226
Return:
216
227
The HTTP response. See GET /scans/{id} in the openvasd API documentation.
@@ -235,7 +246,8 @@ def get_scan_results(
235
246
scan_id: The id of the scan to get the results of.
236
247
range_start: Optional index of the first result to get.
237
248
range_end: Optional index of the last result to get.
238
- raise_for_status: Whether to raise an error if scanner responded with a non-success HTTP status code.
249
+ raise_for_status: Whether to raise an error if scanner responded with a
250
+ non-success HTTP status code.
239
251
240
252
Return:
241
253
The HTTP response. See GET /scans/{id}/results in the openvasd API documentation.
@@ -286,7 +298,8 @@ def get_scan_result(
286
298
Args:
287
299
scan_id: The id of the scan to get the results of.
288
300
result_id: The id of the result to get.
289
- raise_for_status: Whether to raise an error if scanner responded with a non-success HTTP status code.
301
+ raise_for_status: Whether to raise an error if scanner responded with a
302
+ non-success HTTP status code.
290
303
291
304
Return:
292
305
The HTTP response. See GET /scans/{id}/{rid} in the openvasd API documentation.
@@ -307,7 +320,8 @@ def get_scan_status(
307
320
308
321
Args:
309
322
scan_id: The id of the scan to get the status of.
310
- raise_for_status: Whether to raise an error if scanner responded with a non-success HTTP status code.
323
+ raise_for_status: Whether to raise an error if scanner responded with a
324
+ non-success HTTP status code.
311
325
312
326
Return:
313
327
The HTTP response. See GET /scans/{id}/{rid} in the openvasd API documentation.
@@ -326,7 +340,8 @@ def run_scan_action(
326
340
Args:
327
341
scan_id: The id of the scan to perform the action on.
328
342
scan_action: The action to perform.
329
- raise_for_status: Whether to raise an error if scanner responded with a non-success HTTP status code.
343
+ raise_for_status: Whether to raise an error if scanner responded with a
344
+ non-success HTTP status code.
330
345
331
346
Return:
332
347
The HTTP response. See POST /scans/{id} in the openvasd API documentation.
@@ -347,7 +362,8 @@ def start_scan(
347
362
348
363
Args:
349
364
scan_id: The id of the scan to perform the action on.
350
- raise_for_status: Whether to raise an error if scanner responded with a non-success HTTP status code.
365
+ raise_for_status: Whether to raise an error if scanner responded with a
366
+ non-success HTTP status code.
351
367
352
368
Return:
353
369
The HTTP response. See POST /scans/{id} in the openvasd API documentation.
@@ -364,7 +380,8 @@ def stop_scan(
364
380
365
381
Args:
366
382
scan_id: The id of the scan to perform the action on.
367
- raise_for_status: Whether to raise an error if scanner responded with a non-success HTTP status code.
383
+ raise_for_status: Whether to raise an error if scanner responded with a
384
+ non-success HTTP status code.
368
385
369
386
Return:
370
387
The HTTP response. See POST /scans/{id} in the openvasd API documentation.
@@ -378,7 +395,8 @@ def get_vts(self, *, raise_for_status: bool = False) -> HttpResponse:
378
395
Gets a list of available vulnerability tests (VTs) on the scanner.
379
396
380
397
Args:
381
- raise_for_status: Whether to raise an error if scanner responded with a non-success HTTP status code.
398
+ raise_for_status: Whether to raise an error if scanner responded with a
399
+ non-success HTTP status code.
382
400
383
401
Return:
384
402
The HTTP response. See GET /vts in the openvasd API documentation.
@@ -393,7 +411,8 @@ def get_vt(
393
411
394
412
Args:
395
413
oid: OID of the VT to get.
396
- raise_for_status: Whether to raise an error if scanner responded with a non-success HTTP status code.
414
+ raise_for_status: Whether to raise an error if scanner responded with a
415
+ non-success HTTP status code.
397
416
398
417
Return:
399
418
The HTTP response. See DELETE /scans/{id} in the openvasd API documentation.
0 commit comments