Greenbone Vulnerability Management Libraries: gmp/gmp.h Source File

Greenbone Vulnerability Management Libraries 23.1.2

gmp.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2009-2023 Greenbone AG
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 */
5
10
11#ifndef _GVM_GMP_GMP_H
12#define _GVM_GMP_GMP_H
13
14#include "../base/array.h" /* for array_t */
15#include "../util/serverutils.h" /* for gvm_connection_t */
16#include "../util/xmlutils.h" /* for entity_t */
17
18#include <glib.h> /* for gchar */
19#include <glib/gtypes.h> /* for gsize */
20#include <gnutls/gnutls.h> /* for gnutls_session_t */
21#include <stddef.h> /* for NULL */
22
26 typedef struct
27{
28 int timeout;
29 const char *username;
30 const char *password;
31 char **role;
32 char **timezone;
33 char **pw_warning;
34 int jwt_requested;
35 char **jwt;
36} gmp_authenticate_info_opts_t;
37
41 static const gmp_authenticate_info_opts_t gmp_authenticate_info_opts_defaults =
42 {0, NULL, NULL, NULL, NULL, NULL, 0, NULL};
43
47 typedef struct
48{
49 const char *sort_field;
50 const char *sort_order;
51 const char *format_id;
52 const char *levels;
53 const char *report_id;
54 int first_result;
55 int max_results;
56 int timeout;
57 int host_first_result;
58 int host_max_results;
59 int autofp;
61 char *type;
62 char *filter;
63 char *filt_id;
64 char *host;
65 char *pos;
66 char *timezone;
67 char *alert_id;
68 char *delta_report_id;
69 char *delta_states;
70 char *host_levels;
71 char *search_phrase;
72 char *host_search_phrase;
73 char *min_cvss_base;
74 char *min_qod;
75 /* Boolean flags: */
76 int notes;
77 int notes_details;
78 int overrides;
79 int override_details;
80 int apply_overrides;
81 int result_hosts_only;
82 int ignore_pagination;
83} gmp_get_report_opts_t;
84
88 static const gmp_get_report_opts_t gmp_get_report_opts_defaults = {
89 "ROWID",
90 "ascending",
91 "a994b278-1f62-11e1-96ac-406186ea4fc5",
92 "hmlgd",
93 NULL,
94 1,
95 -1,
96 0,
97 0,
98 0,
99 0,
100 NULL,
101 NULL,
102 NULL,
103 NULL,
104 NULL,
105 NULL,
106 NULL,
107 NULL,
108 NULL,
109 NULL,
110 NULL,
111 NULL,
112 NULL,
113 NULL,
114 0,
115 0,
116 0,
117 0,
118 0,
119 0,
120 0};
121
125 typedef struct
126{
127 const char *filter;
128 int timeout;
129 const char *actions;
130 /* Boolean flags: */
131 int details;
132 int rcfile;
133} gmp_get_tasks_opts_t;
134
138 static const gmp_get_tasks_opts_t gmp_get_tasks_opts_defaults = {"", 0, NULL, 0,
139 0};
140
144 typedef struct
145{
146 const char *actions;
147 const char *task_id;
148 /* Boolean flags: */
149 int details;
150 int rcfile;
151} gmp_get_task_opts_t;
152
156 static const gmp_get_task_opts_t gmp_get_task_opts_defaults = {NULL, NULL, 0,
157 0};
158
162 typedef struct
163{
164 array_t *alert_ids;
165 const char *config_id;
166 const char *scanner_id;
167 const char *schedule_id;
168 const char *slave_id;
169 const char *target_id;
170 const char *name;
171 const char *comment;
172 const char *hosts_ordering;
173 const char *observers;
174 array_t *observer_groups;
175 int schedule_periods;
176 /* Preferences */
177 const char *in_assets;
178 const char *max_hosts;
179 const char *max_checks;
180 const char *source_iface;
181 /* Boolean flags: */
182 int alterable;
183} gmp_create_task_opts_t;
184
188 static const gmp_create_task_opts_t gmp_create_task_opts_defaults = {
189 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
190 NULL, NULL, 0, NULL, NULL, NULL, NULL, 0};
191
195 typedef struct
196{
197 int ssh_credential_port;
198 const char *ssh_credential_id;
199 const char *smb_credential_id;
200 const char *esxi_credential_id;
201 const char *snmp_credential_id;
202 const char *port_range;
203 const char *name;
204 const char *comment;
205 const char *hosts;
206 const char *exclude_hosts;
207 const char *alive_tests;
208 /* Boolean flags: */
209 int reverse_lookup_only;
210 int reverse_lookup_unify;
211} gmp_create_target_opts_t;
212
216 static const gmp_create_target_opts_t gmp_create_target_opts_defaults = {
217 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0};
218
222 typedef struct
223{
224 const char *name;
225 const char *duration;
226 const char *start_time;
227 const char *end_time;
228 const char *slave_id;
229 int brief;
230} gmp_get_system_reports_opts_t;
231
235static const gmp_get_system_reports_opts_t
236 gmp_get_system_reports_opts_defaults = {NULL, NULL, NULL, NULL, NULL, 0};
237
241 typedef struct
242{
243 const char *name;
244 const char *community;
245 const char *login;
246 const char *passphrase;
247 const char *private_key;
248 const char *auth_algorithm;
249 const char *privacy_password;
250 const char *privacy_algorithm;
251 const char *comment;
252} gmp_create_lsc_credential_opts_t;
253
257static const gmp_create_lsc_credential_opts_t
258 gmp_create_lsc_credential_opts_defaults = {NULL, NULL, NULL, NULL, NULL,
259 NULL, NULL, NULL, NULL};
260
264 typedef struct
265{
266 int ultimate;
267} gmp_delete_opts_t;
268
272 static const gmp_delete_opts_t gmp_delete_opts_defaults = {0};
273
277 static const gmp_delete_opts_t gmp_delete_opts_ultimate_defaults = {1};
278
279int
280 gmp_read_create_response (gnutls_session_t *, gchar **);
281
282const char *
283 gmp_task_status (entity_t status_response);
284
285int
286 gmp_ping (gnutls_session_t *, int);
287
288int
289 gmp_ping_c (gvm_connection_t *, int, gchar **);
290
291int
292 gmp_authenticate (gnutls_session_t *session, const char *username,
293 const char *password);
294
295int
296 gmp_authenticate_info_ext (gnutls_session_t *, gmp_authenticate_info_opts_t);
297
298int
299 gmp_authenticate_info_ext_c (gvm_connection_t *, gmp_authenticate_info_opts_t);
300
301int
302 gmp_create_task (gnutls_session_t *, const char *, const char *, const char *,
303 const char *, gchar **);
304
305int
306 gmp_create_task_ext (gnutls_session_t *, gmp_create_task_opts_t, gchar **);
307
308int
309 gmp_start_task_report (gnutls_session_t *, const char *, char **);
310
311int
312 gmp_start_task_report_c (gvm_connection_t *, const char *, char **);
313
317 typedef struct
318{
319 const char *task_id;
320} gmp_start_task_opts_t;
321
322 static const gmp_start_task_opts_t gmp_start_task_opts_defaults = {NULL};
323
324int
325 gmp_start_task_ext_c (gvm_connection_t *, gmp_start_task_opts_t);
326
327int
328 gmp_stop_task (gnutls_session_t *, const char *);
329
330int
331 gmp_stop_task_c (gvm_connection_t *, const char *);
332
333int
334 gmp_resume_task_report (gnutls_session_t *, const char *, char **);
335
336int
337 gmp_resume_task_report_c (gvm_connection_t *, const char *, char **);
338
339int
340 gmp_get_tasks (gnutls_session_t *, const char *, int, int, entity_t *);
341
342int
343 gmp_get_tasks_ext (gnutls_session_t *, gmp_get_tasks_opts_t, entity_t *);
344
345int
346 gmp_get_task_ext (gnutls_session_t *, gmp_get_task_opts_t, entity_t *);
347
348int
349 gmp_get_targets (gnutls_session_t *, const char *, int, int, entity_t *);
350
351int
352 gmp_get_report_ext (gnutls_session_t *, gmp_get_report_opts_t, entity_t *);
353
354int
355 gmp_delete_port_list_ext (gnutls_session_t *, const char *, gmp_delete_opts_t);
356
357int
358 gmp_delete_task (gnutls_session_t *, const char *);
359
360int
361 gmp_delete_task_ext (gnutls_session_t *, const char *, gmp_delete_opts_t);
362
363int
364 gmp_modify_task_file (gnutls_session_t *, const char *, const char *,
365 const void *, gsize);
366
367int
368 gmp_delete_report (gnutls_session_t *, const char *);
369
370int
371 gmp_create_target_ext (gnutls_session_t *, gmp_create_target_opts_t, gchar **);
372
373int
374 gmp_delete_target_ext (gnutls_session_t *, const char *, gmp_delete_opts_t);
375
376int
377 gmp_delete_config_ext (gnutls_session_t *, const char *, gmp_delete_opts_t);
378
379int
380 gmp_create_lsc_credential_ext (gnutls_session_t *,
381 gmp_create_lsc_credential_opts_t, gchar **);
382
383int
384 gmp_create_lsc_credential (gnutls_session_t *, const char *, const char *,
385 const char *, const char *, gchar **);
386
387int
388 gmp_create_lsc_credential_key (gnutls_session_t *, const char *, const char *,
389 const char *, const char *, const char *,
390 gchar **);
391
392int
393 gmp_delete_lsc_credential_ext (gnutls_session_t *, const char *,
394 gmp_delete_opts_t);
395
396int
397 gmp_get_system_reports (gnutls_session_t *, const char *, int, entity_t *);
398
399int
400 gmp_get_system_reports_ext (gnutls_session_t *, gmp_get_system_reports_opts_t,
401 entity_t *);
402
403#endif /* not _GVM_GMP_GMP_H */
array.h
Array utilities.
array_t
GPtrArray array_t
Definition array.h:16
gmp_get_system_reports
int gmp_get_system_reports(gnutls_session_t *, const char *, int, entity_t *)
Get system reports.
Definition gmp.c:1971
gmp_create_lsc_credential
int gmp_create_lsc_credential(gnutls_session_t *, const char *, const char *, const char *, const char *, gchar **)
Create an LSC Credential.
Definition gmp.c:1726
gmp_delete_lsc_credential_ext
int gmp_delete_lsc_credential_ext(gnutls_session_t *, const char *, gmp_delete_opts_t)
Delete a LSC credential.
Definition gmp.c:1939
gmp_delete_opts_defaults
static const gmp_delete_opts_t gmp_delete_opts_defaults
Sensible default values for gmp_get_report_opts_t.
Definition gmp.h:272
gmp_start_task_report
int gmp_start_task_report(gnutls_session_t *, const char *, char **)
Start a task and read the manager response.
Definition gmp.c:754
gmp_start_task_ext_c
int gmp_start_task_ext_c(gvm_connection_t *, gmp_start_task_opts_t)
Start a task and read the manager response.
Definition gmp.c:859
gmp_delete_port_list_ext
int gmp_delete_port_list_ext(gnutls_session_t *, const char *, gmp_delete_opts_t)
Delete a port list.
Definition gmp.c:1486
gmp_stop_task_c
int gmp_stop_task_c(gvm_connection_t *, const char *)
Stop a task and read the manager response.
Definition gmp.c:972
gmp_get_tasks_opts_defaults
static const gmp_get_tasks_opts_t gmp_get_tasks_opts_defaults
Sensible default values for gmp_get_tasks_opts_t.
Definition gmp.h:138
gmp_authenticate_info_opts_defaults
static const gmp_authenticate_info_opts_t gmp_authenticate_info_opts_defaults
Sensible default values for gmp_authenticate_info_opts_t.
Definition gmp.h:41
gmp_get_system_reports_opts_defaults
static const gmp_get_system_reports_opts_t gmp_get_system_reports_opts_defaults
Sensible default values for gmp_get_report_opts_t.
Definition gmp.h:236
gmp_create_task_ext
int gmp_create_task_ext(gnutls_session_t *, gmp_create_task_opts_t, gchar **)
Create a task.
Definition gmp.c:547
gmp_start_task_opts_defaults
static const gmp_start_task_opts_t gmp_start_task_opts_defaults
Definition gmp.h:322
gmp_delete_task
int gmp_delete_task(gnutls_session_t *, const char *)
Delete a task and read the manager response.
Definition gmp.c:1322
gmp_delete_task_ext
int gmp_delete_task_ext(gnutls_session_t *, const char *, gmp_delete_opts_t)
Delete a task and read the manager response.
Definition gmp.c:1094
gmp_read_create_response
int gmp_read_create_response(gnutls_session_t *, gchar **)
Read response status and resource UUID.
Definition gmp.c:890
gmp_resume_task_report
int gmp_resume_task_report(gnutls_session_t *, const char *, char **)
Resume a task and read the manager response.
Definition gmp.c:991
gmp_resume_task_report_c
int gmp_resume_task_report_c(gvm_connection_t *, const char *, char **)
Resume a task and read the manager response.
Definition gmp.c:1036
gmp_ping
int gmp_ping(gnutls_session_t *, int)
"Ping" the manager.
Definition gmp.c:190
gmp_task_status
const char * gmp_task_status(entity_t status_response)
Get the task status from a GMP GET_TASKS response.
Definition gmp.c:48
gmp_create_lsc_credential_key
int gmp_create_lsc_credential_key(gnutls_session_t *, const char *, const char *, const char *, const char *, const char *, gchar **)
Create an LSC Credential with a key.
Definition gmp.c:1794
gmp_stop_task
int gmp_stop_task(gnutls_session_t *, const char *)
Stop a task and read the manager response.
Definition gmp.c:948
gmp_get_report_ext
int gmp_get_report_ext(gnutls_session_t *, gmp_get_report_opts_t, entity_t *)
Get a report (generic version).
Definition gmp.c:1388
gmp_delete_opts_ultimate_defaults
static const gmp_delete_opts_t gmp_delete_opts_ultimate_defaults
Default values for gmp_get_report_opts_t for ultimate deletion.
Definition gmp.h:277
gmp_authenticate
int gmp_authenticate(gnutls_session_t *session, const char *username, const char *password)
Authenticate with the manager.
Definition gmp.c:321
gmp_get_report_opts_defaults
static const gmp_get_report_opts_t gmp_get_report_opts_defaults
Sensible default values for gmp_get_report_opts_t.
Definition gmp.h:88
gmp_get_targets
int gmp_get_targets(gnutls_session_t *, const char *, int, int, entity_t *)
Get a target.
Definition gmp.c:1350
gmp_create_task
int gmp_create_task(gnutls_session_t *, const char *, const char *, const char *, const char *, gchar **)
Create a task given a config and target.
Definition gmp.c:719
gmp_delete_target_ext
int gmp_delete_target_ext(gnutls_session_t *, const char *, gmp_delete_opts_t)
Delete a target.
Definition gmp.c:1665
gmp_get_tasks_ext
int gmp_get_tasks_ext(gnutls_session_t *, gmp_get_tasks_opts_t, entity_t *)
Get all tasks (generic version).
Definition gmp.c:1198
gmp_create_lsc_credential_opts_defaults
static const gmp_create_lsc_credential_opts_t gmp_create_lsc_credential_opts_defaults
Sensible default values for gmp_create_lsc_credential_opts_t.
Definition gmp.h:258
gmp_get_task_ext
int gmp_get_task_ext(gnutls_session_t *, gmp_get_task_opts_t, entity_t *)
Get a task (generic version).
Definition gmp.c:1161
gmp_get_tasks
int gmp_get_tasks(gnutls_session_t *, const char *, int, int, entity_t *)
Get the status of a task.
Definition gmp.c:1126
gmp_create_target_opts_defaults
static const gmp_create_target_opts_t gmp_create_target_opts_defaults
Sensible default values for gmp_get_report_opts_t.
Definition gmp.h:216
gmp_modify_task_file
int gmp_modify_task_file(gnutls_session_t *, const char *, const char *, const void *, gsize)
Modify a file on a task.
Definition gmp.c:1265
gmp_delete_config_ext
int gmp_delete_config_ext(gnutls_session_t *, const char *, gmp_delete_opts_t)
Delete a config.
Definition gmp.c:1694
gmp_get_task_opts_defaults
static const gmp_get_task_opts_t gmp_get_task_opts_defaults
Sensible default values for gmp_get_tasks_opts_t.
Definition gmp.h:156
gmp_authenticate_info_ext
int gmp_authenticate_info_ext(gnutls_session_t *, gmp_authenticate_info_opts_t)
Authenticate with the manager.
Definition gmp.c:364
gmp_ping_c
int gmp_ping_c(gvm_connection_t *, int, gchar **)
"Ping" the manager.
Definition gmp.c:249
gmp_get_system_reports_ext
int gmp_get_system_reports_ext(gnutls_session_t *, gmp_get_system_reports_opts_t, entity_t *)
Get system reports.
Definition gmp.c:2002
gmp_create_lsc_credential_ext
int gmp_create_lsc_credential_ext(gnutls_session_t *, gmp_create_lsc_credential_opts_t, gchar **)
Create an LSC credential.
Definition gmp.c:1847
gmp_authenticate_info_ext_c
int gmp_authenticate_info_ext_c(gvm_connection_t *, gmp_authenticate_info_opts_t)
Authenticate with the manager.
Definition gmp.c:445
gmp_create_target_ext
int gmp_create_target_ext(gnutls_session_t *, gmp_create_target_opts_t, gchar **)
Create a target.
Definition gmp.c:1544
gmp_create_task_opts_defaults
static const gmp_create_task_opts_t gmp_create_task_opts_defaults
Sensible default values for gmp_get_report_opts_t.
Definition gmp.h:188
gmp_start_task_report_c
int gmp_start_task_report_c(gvm_connection_t *, const char *, char **)
Start a task and read the manager response.
Definition gmp.c:799
gmp_delete_report
int gmp_delete_report(gnutls_session_t *, const char *)
Remove a report.
Definition gmp.c:1514
serverutils.h
GnuTLS based functions for server communication - header file.
gmp_authenticate_info_opts_t
Struct holding options for authentication.
Definition gmp.h:27
gmp_authenticate_info_opts_t::password
const char * password
Username.
Definition gmp.h:30
gmp_authenticate_info_opts_t::timeout
int timeout
Timeout for authentication.
Definition gmp.h:28
gmp_authenticate_info_opts_t::jwt_requested
int jwt_requested
Flag for JWT. 0 = false, 1 = true.
Definition gmp.h:34
gmp_authenticate_info_opts_t::pw_warning
char ** pw_warning
[out] Password warning, NULL if password is okay.
Definition gmp.h:33
gmp_authenticate_info_opts_t::timezone
char ** timezone
[out] Timezone if any, else NULL.
Definition gmp.h:32
gmp_authenticate_info_opts_t::jwt
char ** jwt
[out] JWT token value, NULL if not requested.
Definition gmp.h:35
gmp_authenticate_info_opts_t::username
const char * username
Password.
Definition gmp.h:29
gmp_authenticate_info_opts_t::role
char ** role
[out] Role.
Definition gmp.h:31
gmp_create_lsc_credential_opts_t
Struct holding options for gmp create_lsc_credential command.
Definition gmp.h:242
gmp_create_lsc_credential_opts_t::privacy_password
const char * privacy_password
SNMP privacy password.
Definition gmp.h:249
gmp_create_lsc_credential_opts_t::privacy_algorithm
const char * privacy_algorithm
SNMP privacy algorithm.
Definition gmp.h:250
gmp_create_lsc_credential_opts_t::login
const char * login
Login.
Definition gmp.h:245
gmp_create_lsc_credential_opts_t::community
const char * community
SNMP community.
Definition gmp.h:244
gmp_create_lsc_credential_opts_t::passphrase
const char * passphrase
Passphrase.
Definition gmp.h:246
gmp_create_lsc_credential_opts_t::comment
const char * comment
Comment on LSC credential.
Definition gmp.h:251
gmp_create_lsc_credential_opts_t::private_key
const char * private_key
Private key.
Definition gmp.h:247
gmp_create_lsc_credential_opts_t::auth_algorithm
const char * auth_algorithm
SNMP authentication algorithm.
Definition gmp.h:248
gmp_create_lsc_credential_opts_t::name
const char * name
Name of LSC credential.
Definition gmp.h:243
gmp_create_target_opts_t
Struct holding options for gmp create_target command.
Definition gmp.h:196
gmp_create_target_opts_t::exclude_hosts
const char * exclude_hosts
Hosts to exclude.
Definition gmp.h:206
gmp_create_target_opts_t::comment
const char * comment
Comment on target.
Definition gmp.h:204
gmp_create_target_opts_t::smb_credential_id
const char * smb_credential_id
ID of SMB credential.
Definition gmp.h:199
gmp_create_target_opts_t::reverse_lookup_only
int reverse_lookup_only
Scanner pref reverse_lookup_only.
Definition gmp.h:209
gmp_create_target_opts_t::reverse_lookup_unify
int reverse_lookup_unify
Scanner pref reverse_lookup_unify.
Definition gmp.h:210
gmp_create_target_opts_t::esxi_credential_id
const char * esxi_credential_id
ID of ESXi credential.
Definition gmp.h:200
gmp_create_target_opts_t::snmp_credential_id
const char * snmp_credential_id
ID of SNMP credential.
Definition gmp.h:201
gmp_create_target_opts_t::hosts
const char * hosts
Name of target.
Definition gmp.h:205
gmp_create_target_opts_t::port_range
const char * port_range
Port range.
Definition gmp.h:202
gmp_create_target_opts_t::ssh_credential_port
int ssh_credential_port
Port for SSH access.
Definition gmp.h:197
gmp_create_target_opts_t::alive_tests
const char * alive_tests
Alive tests.
Definition gmp.h:207
gmp_create_target_opts_t::ssh_credential_id
const char * ssh_credential_id
ID of SSH credential.
Definition gmp.h:198
gmp_create_target_opts_t::name
const char * name
Name of target.
Definition gmp.h:203
gmp_create_task_opts_t
Struct holding options for gmp create_task command.
Definition gmp.h:163
gmp_create_task_opts_t::schedule_periods
int schedule_periods
Number of periods the schedule must run for.
Definition gmp.h:175
gmp_create_task_opts_t::max_checks
const char * max_checks
Max checks preference.
Definition gmp.h:179
gmp_create_task_opts_t::slave_id
const char * slave_id
ID of task schedule.
Definition gmp.h:168
gmp_create_task_opts_t::alert_ids
array_t * alert_ids
Array of alert IDs.
Definition gmp.h:164
gmp_create_task_opts_t::config_id
const char * config_id
ID of config.
Definition gmp.h:165
gmp_create_task_opts_t::in_assets
const char * in_assets
In assets preference.
Definition gmp.h:177
gmp_create_task_opts_t::schedule_id
const char * schedule_id
ID of task schedule.
Definition gmp.h:167
gmp_create_task_opts_t::source_iface
const char * source_iface
Source iface preference.
Definition gmp.h:180
gmp_create_task_opts_t::observer_groups
array_t * observer_groups
IDs of observer groups.
Definition gmp.h:174
gmp_create_task_opts_t::observers
const char * observers
Comma-separated string of observer users.
Definition gmp.h:173
gmp_create_task_opts_t::name
const char * name
Name of task.
Definition gmp.h:170
gmp_create_task_opts_t::target_id
const char * target_id
ID of target.
Definition gmp.h:169
gmp_create_task_opts_t::scanner_id
const char * scanner_id
ID of task scanner.
Definition gmp.h:166
gmp_create_task_opts_t::alterable
int alterable
Whether the task is alterable.
Definition gmp.h:182
gmp_create_task_opts_t::max_hosts
const char * max_hosts
Max hosts preference.
Definition gmp.h:178
gmp_create_task_opts_t::hosts_ordering
const char * hosts_ordering
Not used, kept for reasons of compatibility.
Definition gmp.h:172
gmp_create_task_opts_t::comment
const char * comment
Comment on task.
Definition gmp.h:171
gmp_delete_opts_t
Struct holding options for various gmp delete_[...] commands.
Definition gmp.h:265
gmp_delete_opts_t::ultimate
int ultimate
Definition gmp.h:266
gmp_get_report_opts_t
Struct holding options for gmp get_report command.
Definition gmp.h:48
gmp_get_report_opts_t::timeout
int timeout
Timeout for GMP response.
Definition gmp.h:56
gmp_get_report_opts_t::search_phrase
char * search_phrase
Search phrase result filter.
Definition gmp.h:71
gmp_get_report_opts_t::override_details
int override_details
If overrides, whether to include details.
Definition gmp.h:79
gmp_get_report_opts_t::sort_order
const char * sort_order
Definition gmp.h:50
gmp_get_report_opts_t::first_result
int first_result
First result to get.
Definition gmp.h:54
gmp_get_report_opts_t::overrides
int overrides
Whether to include overrides in the report.
Definition gmp.h:78
gmp_get_report_opts_t::max_results
int max_results
Maximum number of results to return.
Definition gmp.h:55
gmp_get_report_opts_t::delta_states
char * delta_states
Delta states (Changed Gone New Same) to include.
Definition gmp.h:69
gmp_get_report_opts_t::sort_field
const char * sort_field
Definition gmp.h:49
gmp_get_report_opts_t::delta_report_id
char * delta_report_id
ID of report to compare single report to.
Definition gmp.h:68
gmp_get_report_opts_t::ignore_pagination
int ignore_pagination
Whether to ignore pagination filters.
Definition gmp.h:82
gmp_get_report_opts_t::timezone
char * timezone
Timezone.
Definition gmp.h:66
gmp_get_report_opts_t::type
char * type
Type of report.
Definition gmp.h:61
gmp_get_report_opts_t::pos
char * pos
Position of report from end.
Definition gmp.h:65
gmp_get_report_opts_t::filt_id
char * filt_id
ID of filter, to filter results.
Definition gmp.h:63
gmp_get_report_opts_t::format_id
const char * format_id
ID of required report format.
Definition gmp.h:51
gmp_get_report_opts_t::host_max_results
int host_max_results
Maximum number of results to return.
Definition gmp.h:58
gmp_get_report_opts_t::min_cvss_base
char * min_cvss_base
Minimum CVSS base filter.
Definition gmp.h:73
gmp_get_report_opts_t::host
char * host
Host for asset report.
Definition gmp.h:64
gmp_get_report_opts_t::report_id
const char * report_id
ID of single report to get.
Definition gmp.h:53
gmp_get_report_opts_t::min_qod
char * min_qod
Minimum QoD filter.
Definition gmp.h:74
gmp_get_report_opts_t::autofp
int autofp
Definition gmp.h:59
gmp_get_report_opts_t::host_levels
char * host_levels
Letter encoded threat level filter, for hosts.
Definition gmp.h:70
gmp_get_report_opts_t::host_search_phrase
char * host_search_phrase
Search phrase result filter.
Definition gmp.h:72
gmp_get_report_opts_t::filter
char * filter
Term to filter results.
Definition gmp.h:62
gmp_get_report_opts_t::host_first_result
int host_first_result
Skip over results before this result number.
Definition gmp.h:57
gmp_get_report_opts_t::notes_details
int notes_details
Whether to include details of above.
Definition gmp.h:77
gmp_get_report_opts_t::alert_id
char * alert_id
ID of alert.
Definition gmp.h:67
gmp_get_report_opts_t::result_hosts_only
int result_hosts_only
Whether to include only hosts that have results.
Definition gmp.h:81
gmp_get_report_opts_t::levels
const char * levels
Result levels to include.
Definition gmp.h:52
gmp_get_report_opts_t::notes
int notes
Whether to include associated notes.
Definition gmp.h:76
gmp_get_report_opts_t::apply_overrides
int apply_overrides
Whether overrides are applied.
Definition gmp.h:80
gmp_get_system_reports_opts_t
Struct holding options for gmp get_system_reports command.
Definition gmp.h:223
gmp_get_system_reports_opts_t::duration
const char * duration
Duration.
Definition gmp.h:225
gmp_get_system_reports_opts_t::slave_id
const char * slave_id
ID of the slave to get report from.
Definition gmp.h:228
gmp_get_system_reports_opts_t::brief
int brief
Brief flag.
Definition gmp.h:229
gmp_get_system_reports_opts_t::end_time
const char * end_time
Time of last data point.
Definition gmp.h:227
gmp_get_system_reports_opts_t::name
const char * name
Name of report.
Definition gmp.h:224
gmp_get_system_reports_opts_t::start_time
const char * start_time
Time of first data point.
Definition gmp.h:226
gmp_get_task_opts_t
Struct holding options for gmp get_tasks command.
Definition gmp.h:145
gmp_get_task_opts_t::details
int details
Whether to include overrides in the tasks.
Definition gmp.h:149
gmp_get_task_opts_t::task_id
const char * task_id
ID of single task to get.
Definition gmp.h:147
gmp_get_task_opts_t::rcfile
int rcfile
Ignored. Removed since GMP 6.0.
Definition gmp.h:150
gmp_get_task_opts_t::actions
const char * actions
Actions argument.
Definition gmp.h:146
gmp_get_tasks_opts_t
Struct holding options for gmp get_tasks command.
Definition gmp.h:126
gmp_get_tasks_opts_t::rcfile
int rcfile
Ignored. Removed since GMP 6.0.
Definition gmp.h:132
gmp_get_tasks_opts_t::timeout
int timeout
Timeout for GMP response.
Definition gmp.h:128
gmp_get_tasks_opts_t::actions
const char * actions
Actions argument.
Definition gmp.h:129
gmp_get_tasks_opts_t::details
int details
Whether to include overrides in the tasks.
Definition gmp.h:131
gmp_get_tasks_opts_t::filter
const char * filter
Filter argument.
Definition gmp.h:127
gmp_start_task_opts_t
Struct holding options for gmp start_task command.
Definition gmp.h:318
gmp_start_task_opts_t::task_id
const char * task_id
ID of task.
Definition gmp.h:319
gvm_connection_t
Connection.
Definition serverutils.h:30
xmlutils.h
Headers for simple XML reader.
entity_t
struct entity_s * entity_t
Definition xmlutils.h:58