create_ha_resource
Add a resource to high availability management by specifying its ID, HA group, failover limits, and desired state.
Instructions
Add a resource to HA management.
Args: sid: Resource ID (format: 'type:vmid', e.g. 'vm:100' or 'ct:101'). group: HA group name. max_relocate: Max relocations on failure. max_restart: Max restarts on failure. state: Desired state: 'started', 'stopped', 'enabled', 'disabled', 'ignored'. comment: Description.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sid | Yes | ||
| group | No | ||
| max_relocate | No | ||
| max_restart | No | ||
| state | No | started | |
| comment | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |