pve_ha_rule_create
Create a Proxmox HA rule with node or resource affinity. Dry-run shows effect; confirm to apply and constrain CRM placement.
Instructions
MUTATION: create an HA rule (the PVE 9 replacement for HA groups). Dry-run by default — the
PLAN shows the rule type, resources, and placement effect. rule_type is 'node-affinity'
(needs nodes; optional strict) or 'resource-affinity' (needs affinity positive|negative).
confirm=True to execute. Synchronous (pmxcfs config write). RISK_MEDIUM — constrains CRM placement.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | ||
| nodes | No | ||
| strict | No | ||
| comment | No | ||
| confirm | No | ||
| disable | No | ||
| affinity | No | ||
| resources | Yes | ||
| rule_type | Yes | ||
| 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 |