pve_snapshot_rollback
Revert a VM or container to a snapshot, discarding all data and config changes made after that point. Destructive operation requires confirmation.
Instructions
Roll a VM or container back to a snapshot. DESTRUCTIVE.
Applies to: QEMU VMs and LXC containers, located by ``vmid`` (``node``
optional and auto-resolved). Requires ``confirm=true``: rolling back
DISCARDS ALL CHANGES (disk data and config) made after snapshot ``name``
was taken, irreversibly.
Side effects: guest disk/config revert to the snapshot; a running guest
is stopped unless the snapshot includes RAM state. Waits up to
PVE_MCP_TASK_WAIT seconds; returns JSON with ``vmid``/``node``/``type``/
``snapshot`` and ``task``.
Source: POST /nodes/{node}/{qemu|lxc}/{vmid}/snapshot/{name}/rollback.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| node | No | ||
| vmid | Yes | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |