pmg_what_object_add
Add an object to a PMG RuleDB 'what' object group. Dry-run by default; set confirm=True to execute the mutation.
Instructions
MUTATION (LOW): add an object to a PMG RuleDB 'what' object group. Dry-run by default. confirm=True to execute. Needs PROXIMO_PMG_* config. PMG 9.1 pmgsh-verified path: POST /config/ruledb/what/{ogroup}/{type}. ogroup: numeric ID string (e.g. '8') from pmg_what_groups_list. type_: contenttype|matchfield|spamfilter|virusfilter|filenamefilter|archivefilter|archivefilenamefilter. Type-specific fields: contenttype+only_content (contenttype/archivefilter), field+value+top_part_only (matchfield), spamlevel (spamfilter), filename (filenamefilter/archivefilenamefilter). only_content maps to API param 'only-content'; top_part_only → 'top-part-only'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | No | ||
| type_ | Yes | ||
| value | No | ||
| ogroup | Yes | ||
| confirm | No | ||
| filename | No | ||
| spamlevel | No | ||
| contenttype | No | ||
| only_content | No | ||
| top_part_only | No | ||
| proximo_target | No | Which configured Proxmox target to run this call against — a target name from your multi-target config (a specific PVE/PBS/PMG/PDM box). Omit to use the single/default target from the environment; the selection applies only to this call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |