pve_node_hosts_set
Update /etc/hosts on a Proxmox node for hostname resolution. Captures current content to allow revert if needed; requires confirm=true to execute.
Instructions
MUTATION: replace the /etc/hosts file on a PVE node.
RISK_MEDIUM. CAPTURE: reads current /etc/hosts before planning (revert by re-applying captured content); if unreadable → complete=False. A bad /etc/hosts can break name resolution. confirm=True to execute.
POST /nodes/{node}/hosts Smoke-confirm: endpoint and body shape not live-verified.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| node | No | ||
| digest | No | ||
| confirm | No | ||
| 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 |