pmg_ruledb_rule_what_attach
Attach a content 'what' group to a PMG RuleDB rule. Dry-run by default; set confirm=True to execute the mutation.
Instructions
MUTATION (MEDIUM): attach a 'what' (content) group to a PMG RuleDB rule. Dry-run by default.
ogroup comes from pmg_what_groups_list; list a rule's current 'what' groups with pmg_ruledb_rule_what_list. Additive — only affects mail flow once the rule is active. confirm=True executes and returns {"status": "ok", "result": <PMG's raw API response>}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_ | Yes | Rule ID to attach the group to. | |
| ogroup | Yes | Numeric 'what' group ID from pmg_what_groups_list to attach as a content condition. | |
| confirm | No | False (default) returns a dry-run PLAN; True executes the mutation. | |
| 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 |