gmp.h
Go to the documentation of this file.
/* Copyright (C) 2009-2021 Greenbone Networks GmbH
*
* SPDX-License-Identifier: GPL-2.0-or-later
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef _GVM_GMP_H
#define _GVM_GMP_H
#include "../base/array.h" /* for array_t */
#include "../util/serverutils.h" /* for gvm_connection_t */
#include "../util/xmlutils.h" /* for entity_t */
#include <glib.h> /* for gchar */
#include <glib/gtypes.h> /* for gsize */
#include <gnutls/gnutls.h> /* for gnutls_session_t */
#include <stddef.h> /* for NULL */
typedef struct
{
int timeout;
const char *username;
const char *password;
char **role;
char **timezone;
char **pw_warning;
} gmp_authenticate_info_opts_t;
static const gmp_authenticate_info_opts_t gmp_authenticate_info_opts_defaults =
{0, NULL, NULL, NULL, NULL, NULL};
typedef struct
{
const char *sort_field;
const char *sort_order;
const char *format_id;
const char *levels;
const char *report_id;
int first_result;
int max_results;
int timeout;
int host_first_result;
int host_max_results;
int autofp;
char *type;
char *filter;
char *filt_id;
char *host;
char *pos;
char *timezone;
char *alert_id;
char *delta_report_id;
char *delta_states;
char *host_levels;
char *search_phrase;
char *host_search_phrase;
char *min_cvss_base;
char *min_qod;
/* Boolean flags: */
int notes;
int notes_details;
int overrides;
int override_details;
int apply_overrides;
int result_hosts_only;
int ignore_pagination;
} gmp_get_report_opts_t;
static const gmp_get_report_opts_t gmp_get_report_opts_defaults = {
"ROWID",
"ascending",
"a994b278-1f62-11e1-96ac-406186ea4fc5",
"hmlgd",
NULL,
1,
-1,
0,
0,
0,
0,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
0,
0,
0,
0,
0,
0,
0};
typedef struct
{
const char *filter;
int timeout;
const char *actions;
/* Boolean flags: */
int details;
int rcfile;
} gmp_get_tasks_opts_t;
static const gmp_get_tasks_opts_t gmp_get_tasks_opts_defaults = {"", 0, NULL, 0,
0};
typedef struct
{
const char *actions;
const char *task_id;
/* Boolean flags: */
int details;
int rcfile;
} gmp_get_task_opts_t;
static const gmp_get_task_opts_t gmp_get_task_opts_defaults = {NULL, NULL, 0,
0};
typedef struct
{
array_t *alert_ids;
const char *config_id;
const char *scanner_id;
const char *schedule_id;
const char *slave_id;
const char *target_id;
const char *name;
const char *comment;
const char *hosts_ordering;
const char *observers;
array_t *observer_groups;
int schedule_periods;
/* Preferences */
const char *in_assets;
const char *max_hosts;
const char *max_checks;
const char *source_iface;
/* Boolean flags: */
int alterable;
} gmp_create_task_opts_t;
static const gmp_create_task_opts_t gmp_create_task_opts_defaults = {
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, 0, NULL, NULL, NULL, NULL, 0};
typedef struct
{
int ssh_credential_port;
const char *ssh_credential_id;
const char *smb_credential_id;
const char *esxi_credential_id;
const char *snmp_credential_id;
const char *port_range;
const char *name;
const char *comment;
const char *hosts;
const char *exclude_hosts;
const char *alive_tests;
/* Boolean flags: */
int reverse_lookup_only;
int reverse_lookup_unify;
} gmp_create_target_opts_t;
static const gmp_create_target_opts_t gmp_create_target_opts_defaults = {
0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0};
typedef struct
{
const char *name;
const char *duration;
const char *start_time;
const char *end_time;
const char *slave_id;
int brief;
} gmp_get_system_reports_opts_t;
static const gmp_get_system_reports_opts_t
gmp_get_system_reports_opts_defaults = {NULL, NULL, NULL, NULL, NULL, 0};
typedef struct
{
const char *name;
const char *community;
const char *login;
const char *passphrase;
const char *private_key;
const char *auth_algorithm;
const char *privacy_password;
const char *privacy_algorithm;
const char *comment;
} gmp_create_lsc_credential_opts_t;
static const gmp_create_lsc_credential_opts_t
gmp_create_lsc_credential_opts_defaults = {NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL};
typedef struct
{
int ultimate;
} gmp_delete_opts_t;
static const gmp_delete_opts_t gmp_delete_opts_defaults = {0};
static const gmp_delete_opts_t gmp_delete_opts_ultimate_defaults = {1};
int
gmp_read_create_response (gnutls_session_t *, gchar **);
const char *
gmp_task_status (entity_t status_response);
int
gmp_ping (gnutls_session_t *, int);
int
gmp_ping_c (gvm_connection_t *, int, gchar **);
int
gmp_authenticate (gnutls_session_t *session, const char *username,
const char *password);
int
gmp_authenticate_info_ext (gnutls_session_t *, gmp_authenticate_info_opts_t);
int
gmp_authenticate_info_ext_c (gvm_connection_t *, gmp_authenticate_info_opts_t);
int
gmp_create_task (gnutls_session_t *, const char *, const char *, const char *,
const char *, gchar **);
int
gmp_create_task_ext (gnutls_session_t *, gmp_create_task_opts_t, gchar **);
int
gmp_start_task_report (gnutls_session_t *, const char *, char **);
int
gmp_start_task_report_c (gvm_connection_t *, const char *, char **);
typedef struct
{
const char *task_id;
} gmp_start_task_opts_t;
static const gmp_start_task_opts_t gmp_start_task_opts_defaults = {NULL};
int
gmp_start_task_ext_c (gvm_connection_t *, gmp_start_task_opts_t);
int
gmp_stop_task (gnutls_session_t *, const char *);
int
gmp_stop_task_c (gvm_connection_t *, const char *);
int
gmp_resume_task_report (gnutls_session_t *, const char *, char **);
int
gmp_resume_task_report_c (gvm_connection_t *, const char *, char **);
int
gmp_get_tasks (gnutls_session_t *, const char *, int, int, entity_t *);
int
gmp_get_tasks_ext (gnutls_session_t *, gmp_get_tasks_opts_t, entity_t *);
int
gmp_get_task_ext (gnutls_session_t *, gmp_get_task_opts_t, entity_t *);
int
gmp_get_targets (gnutls_session_t *, const char *, int, int, entity_t *);
int
gmp_get_report_ext (gnutls_session_t *, gmp_get_report_opts_t, entity_t *);
int
gmp_delete_port_list_ext (gnutls_session_t *, const char *, gmp_delete_opts_t);
int
gmp_delete_task (gnutls_session_t *, const char *);
int
gmp_delete_task_ext (gnutls_session_t *, const char *, gmp_delete_opts_t);
int
gmp_modify_task_file (gnutls_session_t *, const char *, const char *,
const void *, gsize);
int
gmp_delete_report (gnutls_session_t *, const char *);
int
gmp_create_target_ext (gnutls_session_t *, gmp_create_target_opts_t, gchar **);
int
gmp_delete_target_ext (gnutls_session_t *, const char *, gmp_delete_opts_t);
int
gmp_delete_config_ext (gnutls_session_t *, const char *, gmp_delete_opts_t);
int
gmp_create_lsc_credential_ext (gnutls_session_t *,
gmp_create_lsc_credential_opts_t, gchar **);
int
gmp_create_lsc_credential (gnutls_session_t *, const char *, const char *,
const char *, const char *, gchar **);
int
gmp_create_lsc_credential_key (gnutls_session_t *, const char *, const char *,
const char *, const char *, const char *,
gchar **);
int
gmp_delete_lsc_credential_ext (gnutls_session_t *, const char *,
gmp_delete_opts_t);
int
gmp_get_system_reports (gnutls_session_t *, const char *, int, entity_t *);
int
gmp_get_system_reports_ext (gnutls_session_t *, gmp_get_system_reports_opts_t,
entity_t *);
#endif /* not _GVM_GMP_H */
array_t
GPtrArray array_t
Definition: array.h:30
gmp_get_system_reports
int gmp_get_system_reports(gnutls_session_t *, const char *, int, entity_t *)
Get system reports.
Definition: gmp.c:1979
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:1734
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:1947
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:284
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:762
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:867
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:1494
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:980
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:150
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:53
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:248
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:334
gmp_delete_task
int gmp_delete_task(gnutls_session_t *, const char *)
Delete a task and read the manager response.
Definition: gmp.c:1330
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:62
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:1102
gmp_read_create_response
int gmp_read_create_response(gnutls_session_t *, gchar **)
Read response status and resource UUID.
Definition: gmp.c:898
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:999
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:1044
gmp_ping
int gmp_ping(gnutls_session_t *, int)
"Ping" the manager.
Definition: gmp.c:200
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:1802
gmp_stop_task
int gmp_stop_task(gnutls_session_t *, const char *)
Stop a task and read the manager response.
Definition: gmp.c:956
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:1396
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:289
gmp_authenticate
int gmp_authenticate(gnutls_session_t *session, const char *username, const char *password)
Authenticate with the manager.
Definition: gmp.c:331
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:100
gmp_get_targets
int gmp_get_targets(gnutls_session_t *, const char *, int, int, entity_t *)
Get a target.
Definition: gmp.c:1358
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:727
gmp_delete_target_ext
int gmp_delete_target_ext(gnutls_session_t *, const char *, gmp_delete_opts_t)
Delete a target.
Definition: gmp.c:1673
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:1206
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:270
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:1169
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:1134
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:228
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:1273
gmp_delete_config_ext
int gmp_delete_config_ext(gnutls_session_t *, const char *, gmp_delete_opts_t)
Delete a config.
Definition: gmp.c:1702
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:168
gmp_authenticate_info_ext
int gmp_authenticate_info_ext(gnutls_session_t *, gmp_authenticate_info_opts_t)
Authenticate with the manager.
Definition: gmp.c:374
gmp_ping_c
int gmp_ping_c(gvm_connection_t *, int, gchar **)
"Ping" the manager.
Definition: gmp.c:259
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:2010
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:1855
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:455
gmp_create_target_ext
int gmp_create_target_ext(gnutls_session_t *, gmp_create_target_opts_t, gchar **)
Create a target.
Definition: gmp.c:1552
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:200
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:807
gmp_delete_report
int gmp_delete_report(gnutls_session_t *, const char *)
Remove a report.
Definition: gmp.c:1522
entity_s
XML element.
Definition: xmlutils.h:66
gmp_authenticate_info_opts_t
Struct holding options for authentication.
Definition: gmp.h:41
gmp_authenticate_info_opts_t::password
const char * password
Username.
Definition: gmp.h:44
gmp_authenticate_info_opts_t::timeout
int timeout
Timeout for authentication.
Definition: gmp.h:42
gmp_authenticate_info_opts_t::pw_warning
char ** pw_warning
[out] Password warning, NULL if password is okay.
Definition: gmp.h:47
gmp_authenticate_info_opts_t::timezone
char ** timezone
[out] Timezone if any, else NULL.
Definition: gmp.h:46
gmp_authenticate_info_opts_t::username
const char * username
Password.
Definition: gmp.h:43
gmp_authenticate_info_opts_t::role
char ** role
[out] Role.
Definition: gmp.h:45
gmp_create_lsc_credential_opts_t
Struct holding options for gmp create_lsc_credential command.
Definition: gmp.h:254
gmp_create_lsc_credential_opts_t::privacy_password
const char * privacy_password
SNMP privacy password.
Definition: gmp.h:261
gmp_create_lsc_credential_opts_t::privacy_algorithm
const char * privacy_algorithm
SNMP privacy algorithm.
Definition: gmp.h:262
gmp_create_lsc_credential_opts_t::login
const char * login
Login.
Definition: gmp.h:257
gmp_create_lsc_credential_opts_t::community
const char * community
SNMP community.
Definition: gmp.h:256
gmp_create_lsc_credential_opts_t::passphrase
const char * passphrase
Passphrase.
Definition: gmp.h:258
gmp_create_lsc_credential_opts_t::comment
const char * comment
Comment on LSC credential.
Definition: gmp.h:263
gmp_create_lsc_credential_opts_t::private_key
const char * private_key
Private key.
Definition: gmp.h:259
gmp_create_lsc_credential_opts_t::auth_algorithm
const char * auth_algorithm
SNMP authentication algorithm.
Definition: gmp.h:260
gmp_create_lsc_credential_opts_t::name
const char * name
Name of LSC credential.
Definition: gmp.h:255
gmp_create_target_opts_t
Struct holding options for gmp create_target command.
Definition: gmp.h:208
gmp_create_target_opts_t::exclude_hosts
const char * exclude_hosts
Hosts to exclude.
Definition: gmp.h:218
gmp_create_target_opts_t::comment
const char * comment
Comment on target.
Definition: gmp.h:216
gmp_create_target_opts_t::smb_credential_id
const char * smb_credential_id
ID of SMB credential.
Definition: gmp.h:211
gmp_create_target_opts_t::reverse_lookup_only
int reverse_lookup_only
Scanner pref reverse_lookup_only.
Definition: gmp.h:221
gmp_create_target_opts_t::reverse_lookup_unify
int reverse_lookup_unify
Scanner pref reverse_lookup_unify.
Definition: gmp.h:222
gmp_create_target_opts_t::esxi_credential_id
const char * esxi_credential_id
ID of ESXi credential.
Definition: gmp.h:212
gmp_create_target_opts_t::snmp_credential_id
const char * snmp_credential_id
ID of SNMP credential.
Definition: gmp.h:213
gmp_create_target_opts_t::hosts
const char * hosts
Name of target.
Definition: gmp.h:217
gmp_create_target_opts_t::port_range
const char * port_range
Port range.
Definition: gmp.h:214
gmp_create_target_opts_t::ssh_credential_port
int ssh_credential_port
Port for SSH access.
Definition: gmp.h:209
gmp_create_target_opts_t::alive_tests
const char * alive_tests
Alive tests.
Definition: gmp.h:219
gmp_create_target_opts_t::ssh_credential_id
const char * ssh_credential_id
ID of SSH credential.
Definition: gmp.h:210
gmp_create_target_opts_t::name
const char * name
Name of target.
Definition: gmp.h:215
gmp_create_task_opts_t
Struct holding options for gmp create_task command.
Definition: gmp.h:175
gmp_create_task_opts_t::schedule_periods
int schedule_periods
Number of periods the schedule must run for.
Definition: gmp.h:187
gmp_create_task_opts_t::max_checks
const char * max_checks
Max checks preference.
Definition: gmp.h:191
gmp_create_task_opts_t::slave_id
const char * slave_id
ID of task schedule.
Definition: gmp.h:180
gmp_create_task_opts_t::alert_ids
array_t * alert_ids
Array of alert IDs.
Definition: gmp.h:176
gmp_create_task_opts_t::config_id
const char * config_id
ID of config.
Definition: gmp.h:177
gmp_create_task_opts_t::in_assets
const char * in_assets
In assets preference.
Definition: gmp.h:189
gmp_create_task_opts_t::schedule_id
const char * schedule_id
ID of task schedule.
Definition: gmp.h:179
gmp_create_task_opts_t::source_iface
const char * source_iface
Source iface preference.
Definition: gmp.h:192
gmp_create_task_opts_t::observer_groups
array_t * observer_groups
IDs of observer groups.
Definition: gmp.h:186
gmp_create_task_opts_t::observers
const char * observers
Comma-separated string of observer users.
Definition: gmp.h:185
gmp_create_task_opts_t::name
const char * name
Name of task.
Definition: gmp.h:182
gmp_create_task_opts_t::target_id
const char * target_id
ID of target.
Definition: gmp.h:181
gmp_create_task_opts_t::scanner_id
const char * scanner_id
ID of task scanner.
Definition: gmp.h:178
gmp_create_task_opts_t::alterable
int alterable
Whether the task is alterable.
Definition: gmp.h:194
gmp_create_task_opts_t::max_hosts
const char * max_hosts
Max hosts preference.
Definition: gmp.h:190
gmp_create_task_opts_t::hosts_ordering
const char * hosts_ordering
Order for scanning target hosts.
Definition: gmp.h:184
gmp_create_task_opts_t::comment
const char * comment
Comment on task.
Definition: gmp.h:183
gmp_delete_opts_t
Struct holding options for various gmp delete_[...] commands.
Definition: gmp.h:277
gmp_delete_opts_t::ultimate
int ultimate
Definition: gmp.h:278
gmp_get_report_opts_t
Struct holding options for gmp get_report command.
Definition: gmp.h:60
gmp_get_report_opts_t::timeout
int timeout
Timeout for GMP response.
Definition: gmp.h:68
gmp_get_report_opts_t::search_phrase
char * search_phrase
Search phrase result filter.
Definition: gmp.h:83
gmp_get_report_opts_t::override_details
int override_details
If overrides, whether to include details.
Definition: gmp.h:91
gmp_get_report_opts_t::sort_order
const char * sort_order
Definition: gmp.h:62
gmp_get_report_opts_t::first_result
int first_result
First result to get.
Definition: gmp.h:66
gmp_get_report_opts_t::overrides
int overrides
Whether to include overrides in the report.
Definition: gmp.h:90
gmp_get_report_opts_t::max_results
int max_results
Maximum number of results to return.
Definition: gmp.h:67
gmp_get_report_opts_t::delta_states
char * delta_states
Delta states (Changed Gone New Same) to include.
Definition: gmp.h:81
gmp_get_report_opts_t::sort_field
const char * sort_field
Definition: gmp.h:61
gmp_get_report_opts_t::delta_report_id
char * delta_report_id
ID of report to compare single report to.
Definition: gmp.h:80
gmp_get_report_opts_t::ignore_pagination
int ignore_pagination
Whether to ignore pagination filters.
Definition: gmp.h:94
gmp_get_report_opts_t::timezone
char * timezone
Timezone.
Definition: gmp.h:78
gmp_get_report_opts_t::type
char * type
Type of report.
Definition: gmp.h:73
gmp_get_report_opts_t::pos
char * pos
Position of report from end.
Definition: gmp.h:77
gmp_get_report_opts_t::filt_id
char * filt_id
ID of filter, to filter results.
Definition: gmp.h:75
gmp_get_report_opts_t::format_id
const char * format_id
ID of required report format.
Definition: gmp.h:63
gmp_get_report_opts_t::host_max_results
int host_max_results
Maximum number of results to return.
Definition: gmp.h:70
gmp_get_report_opts_t::min_cvss_base
char * min_cvss_base
Minimum CVSS base filter.
Definition: gmp.h:85
gmp_get_report_opts_t::host
char * host
Host for asset report.
Definition: gmp.h:76
gmp_get_report_opts_t::report_id
const char * report_id
ID of single report to get.
Definition: gmp.h:65
gmp_get_report_opts_t::min_qod
char * min_qod
Minimum QoD filter.
Definition: gmp.h:86
gmp_get_report_opts_t::autofp
int autofp
Definition: gmp.h:71
gmp_get_report_opts_t::host_levels
char * host_levels
Letter encoded threat level filter, for hosts.
Definition: gmp.h:82
gmp_get_report_opts_t::host_search_phrase
char * host_search_phrase
Search phrase result filter.
Definition: gmp.h:84
gmp_get_report_opts_t::filter
char * filter
Term to filter results.
Definition: gmp.h:74
gmp_get_report_opts_t::host_first_result
int host_first_result
Skip over results before this result number.
Definition: gmp.h:69
gmp_get_report_opts_t::notes_details
int notes_details
Whether to include details of above.
Definition: gmp.h:89
gmp_get_report_opts_t::alert_id
char * alert_id
ID of alert.
Definition: gmp.h:79
gmp_get_report_opts_t::result_hosts_only
int result_hosts_only
Whether to include only hosts that have results.
Definition: gmp.h:93
gmp_get_report_opts_t::levels
const char * levels
Result levels to include.
Definition: gmp.h:64
gmp_get_report_opts_t::notes
int notes
Whether to include associated notes.
Definition: gmp.h:88
gmp_get_report_opts_t::apply_overrides
int apply_overrides
Whether overrides are applied.
Definition: gmp.h:92
gmp_get_system_reports_opts_t
Struct holding options for gmp get_system_reports command.
Definition: gmp.h:235
gmp_get_system_reports_opts_t::duration
const char * duration
Duration.
Definition: gmp.h:237
gmp_get_system_reports_opts_t::slave_id
const char * slave_id
ID of the slave to get report from.
Definition: gmp.h:240
gmp_get_system_reports_opts_t::brief
int brief
Brief flag.
Definition: gmp.h:241
gmp_get_system_reports_opts_t::end_time
const char * end_time
Time of last data point.
Definition: gmp.h:239
gmp_get_system_reports_opts_t::name
const char * name
Name of report.
Definition: gmp.h:236
gmp_get_system_reports_opts_t::start_time
const char * start_time
Time of first data point.
Definition: gmp.h:238
gmp_get_task_opts_t
Struct holding options for gmp get_tasks command.
Definition: gmp.h:157
gmp_get_task_opts_t::details
int details
Whether to include overrides in the tasks.
Definition: gmp.h:161
gmp_get_task_opts_t::task_id
const char * task_id
ID of single task to get.
Definition: gmp.h:159
gmp_get_task_opts_t::rcfile
int rcfile
Ignored. Removed since GMP 6.0.
Definition: gmp.h:162
gmp_get_task_opts_t::actions
const char * actions
Actions argument.
Definition: gmp.h:158
gmp_get_tasks_opts_t
Struct holding options for gmp get_tasks command.
Definition: gmp.h:138
gmp_get_tasks_opts_t::rcfile
int rcfile
Ignored. Removed since GMP 6.0.
Definition: gmp.h:144
gmp_get_tasks_opts_t::timeout
int timeout
Timeout for GMP response.
Definition: gmp.h:140
gmp_get_tasks_opts_t::actions
const char * actions
Actions argument.
Definition: gmp.h:141
gmp_get_tasks_opts_t::details
int details
Whether to include overrides in the tasks.
Definition: gmp.h:143
gmp_get_tasks_opts_t::filter
const char * filter
Filter argument.
Definition: gmp.h:139
gmp_start_task_opts_t
Struct holding options for gmp start_task command.
Definition: gmp.h:330
gmp_start_task_opts_t::task_id
const char * task_id
ID of task.
Definition: gmp.h:331
gvm_connection_t
Connection.
Definition: serverutils.h:44