pmg_ruledb_rule_action_attach
Attach an action group to a PMG RuleDB rule. Dry-run returns a plan; set confirm to true to execute the mutation.
Instructions
MUTATION (MEDIUM): attach an action group to a PMG RuleDB rule. Dry-run by default.
ogroup comes from pmg_action_objects_list (the integer part before '_' in a compound ID like '13_26'); list a rule's current actions with pmg_ruledb_rule_actions_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 action group to. | |
| ogroup | Yes | Numeric action group ID from pmg_action_objects_list to attach to the rule. | |
| 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 |