Hi,
I'm trying to convert my HA playbooks from HA groups to HA rules. I'm using the API as described under https://pve.proxmox.com/pve-docs/api-viewer/index.html
Let's begin with asking about existing rules. I have one rule which was created by the automatic conversion from HA groups to HA rules.
and
but how do I get the actual rule contents like enabled, state, strict, HA resources, nodes and comment? And how about updating the values?
Also, it seems that rules have names (like "ha-group-all"), but where do I see the names in the Web UI? How do I identify a rule create in the Web UI when using the API?
In the past I could add a resource to a group by POSTing to
Is there an updated version of the API documentation?
Regards,
Robert
I'm trying to convert my HA playbooks from HA groups to HA rules. I'm using the API as described under https://pve.proxmox.com/pve-docs/api-viewer/index.html
Let's begin with asking about existing rules. I have one rule which was created by the automatic conversion from HA groups to HA rules.
pvesh get /cluster/ha/rules gives me:
Code:
┌──────────────┐
│ rule │
╞══════════════╡
│ ha-group-all │
└──────────────┘
pvesh get /cluster/ha/rules/ha-group-all gives me:
Code:
┌──────┬───────────────┐
│ key │ value │
╞══════╪═══════════════╡
│ rule │ ha-group-all │
├──────┼───────────────┤
│ type │ node-affinity │
└──────┴───────────────┘
Also, it seems that rules have names (like "ha-group-all"), but where do I see the names in the Web UI? How do I identify a rule create in the Web UI when using the API?
In the past I could add a resource to a group by POSTing to
/cluster/ha/resources with sid and group. The documentation still mentions group but there are no groups anymore.Is there an updated version of the API documentation?
Regards,
Robert