port-lists¶
Port lists.
Toolset name:
port-listsEnabled by default: yes
Tools: 5 (2 read-only)
Tools¶
openvas_create_port_list¶
Create port list · mutating
Create a port list from a range expression like “T:1-1000,U:53,T:8080”. Not idempotent.
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
no |
Optional comment |
|
string |
yes |
Port list name |
|
string |
no |
Port range expression, e.g. “T:1-1000,U:53” |
openvas_delete_port_list¶
Delete port list · destructive
Delete a port list (to the trashcan by default; ultimate deletes permanently). Fails with 409 if a target 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_port_list¶
Get port list · read-only
Get one port list by UUID, including its port ranges.
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
Resource UUID |
openvas_list_port_lists¶
List port lists · read-only
List port lists targets can scan.
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_port_list¶
Update port list · destructive
Update a port list’s name, comment or ranges. Idempotent (PUT).
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
no |
|
|
string |
yes |
UUID of the port list to update |
|
string |
no |
|
|
string |
no |
Replacement port range expression, e.g. “T:1-1000,U:53” |