compliance¶
Compliance audits and policies.
Toolset name:
complianceEnabled by default: yes
Tools: 13 (4 read-only)
Tools¶
openvas_create_audit¶
Create audit · mutating
Create a compliance audit binding a target, a policy (as scan_config_id) and a scanner. Returns the new audit’s UUID.
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
no |
UUID of the agent group (agentGroup tasks) |
|
array |
no |
Optional alert UUIDs to attach |
|
boolean |
no |
Whether the task stays modifiable after the first run |
|
string |
no |
Optional comment |
|
string |
yes |
Task name |
|
array |
no |
Login names of users allowed to observe the task |
|
string |
no |
UUID of the OCI image target (ociImage tasks) |
|
object<string, string> |
no |
Key-value scan preferences, e.g. {“max_checks”: “4”} |
|
string |
no |
UUID of the scan config (required for classic tasks, rejected for other variants) |
|
string |
no |
UUID of the scanner (required for every non-import task) |
|
string |
no |
Optional schedule UUID |
|
integer |
no |
Number of schedule periods to run (0 = unlimited) |
|
string |
no |
UUID of the scan target (classic tasks) |
|
string |
no |
Task variant: “classic” (default; host target + scan config), “agentGroup”, “ociImage”, “webApplication” or “import” (a container task for openvas_import_report that accepts only name/comment). Non-classic variants are inferred from their selector when omitted. |
|
string |
no |
UUID of the web application target (webApplication tasks) |
openvas_create_policy¶
Create policy · mutating
Create a compliance policy as a copy of an existing one. Not idempotent.
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
UUID of the active policy to copy from (see openvas_list_policies) |
|
string |
no |
Optional comment |
|
string |
yes |
Policy name |
openvas_delete_audit¶
Delete audit · destructive
Delete a compliance audit.
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
Resource UUID |
openvas_delete_policy¶
Delete policy · destructive
Delete a compliance policy. Fails with 409 if an audit still uses it.
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
Resource UUID |
openvas_get_audit¶
Get audit · read-only
Get one compliance audit by UUID.
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
Resource UUID |
openvas_get_policy¶
Get policy · read-only
Get one compliance policy by UUID.
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
Resource UUID |
openvas_list_audits¶
List audits · read-only
List compliance audits with status and progress.
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_list_policies¶
List policies · read-only
List compliance policies (audit scan configurations).
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_resume_audit¶
Resume audit · mutating
Resume a stopped compliance audit. Returns the report UUID.
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
Resource UUID |
openvas_start_audit¶
Start audit · mutating
Start a compliance audit. Returns the UUID of the report it writes to.
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
Resource UUID |
openvas_stop_audit¶
Stop audit · mutating
Stop a running compliance audit.
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
Resource UUID |
openvas_update_audit¶
Update audit · destructive
Update a compliance audit. Idempotent (PUT): omitted fields stay unchanged.
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
array |
no |
Replacement alert UUIDs |
|
boolean |
no |
|
|
string |
no |
|
|
string |
yes |
UUID of the task to update |
|
string |
no |
|
|
array |
no |
Replacement observer login names |
|
object<string, string> |
no |
Key-value scan preferences |
|
string |
no |
Replacement scan config UUID |
|
string |
no |
Replacement scanner UUID |
|
string |
no |
Replacement schedule UUID |
|
integer |
no |
|
|
string |
no |
Replacement target UUID |
openvas_update_policy¶
Update policy · destructive
Rename or re-comment a compliance policy. Idempotent (PUT).
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
no |
|
|
string |
yes |
UUID of the policy to update |
|
string |
no |