alerts¶
Alerts and notifications.
Toolset name:
alertsEnabled by default: yes
Tools: 5 (2 read-only)
Tools¶
openvas_create_alert¶
Create alert · mutating
Create an alert binding an event, condition and method (e.g. email on task_run_status_changed with event_data {“status”: “Done”}). The event/condition/method values are the gateway’s snake_case identifiers. Not idempotent.
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
no |
Optional comment |
|
string |
yes |
Trigger condition: always, filter_count_at_least, filter_count_changed, severity_at_least or severity_changed |
|
object<string, string> |
no |
Condition parameters, e.g. {“severity”: “7.0”} |
|
string |
yes |
Trigger event: task_run_status_changed, updated_secinfo or new_secinfo |
|
object<string, string> |
no |
Event parameters, e.g. {“status”: “Done”} |
|
string |
no |
UUID of a filter restricting which results the alert reports |
|
string |
yes |
Delivery method: email, http_get, scp, send_email, smb, snmp, sourcefire_connector, start_task, syslog, tippingpoint, verinice_ce, verinice_net or alemba |
|
object<string, string> |
no |
Method parameters, e.g. {“to_address”: “sec@example.com”} |
|
string |
yes |
Alert name |
openvas_delete_alert¶
Delete alert · destructive
Delete an alert (to the trashcan by default; ultimate deletes permanently). Fails with 409 if a task still uses it.
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
Resource UUID |
|
boolean |
no |
Permanently delete instead of moving to the trashcan (default false) |
openvas_get_alert¶
Get alert · read-only
Get one alert by UUID, including event/condition/method data.
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
Resource UUID |
openvas_list_alerts¶
List alerts · read-only
List alerts (notifications triggered by task events).
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
no |
GMP filter expression, e.g. |
|
string |
no |
UUID of a saved filter to apply |
|
integer |
no |
Page number, 1-indexed (default 1) (min 0) |
|
integer |
no |
Items per page, 1-1000 (default 25) (min 0) |
openvas_update_alert¶
Update alert · destructive
Update an alert. Idempotent (PUT): omitted fields stay unchanged.
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
no |
|
|
string |
no |
Same values as openvas_create_alert |
|
object<string, string> |
no |
|
|
string |
no |
Same values as openvas_create_alert |
|
object<string, string> |
no |
|
|
string |
no |
|
|
string |
yes |
UUID of the alert to update |
|
string |
no |
Same values as openvas_create_alert |
|
object<string, string> |
no |
|
|
string |
no |