pve_snapshot_create
Create a snapshot of a Proxmox VM or container, optionally including RAM state for live snapshots.
Instructions
Create a snapshot of a VM or container.
Applies to: QEMU VMs and LXC containers, located by ``vmid`` (``node``
optional and auto-resolved). ``name`` is the snapshot identifier.
``vmstate=true`` also saves the RAM state (live snapshot) — QEMU only;
LXC containers reject it with an error.
Side effects: creates a snapshot (disk space usage grows over time).
Waits up to PVE_MCP_TASK_WAIT seconds for the PVE task; returns JSON with
``vmid``/``node``/``type``/``snapshot`` and ``task`` (``exitstatus``
"OK", failure + ``log_tail``, or ``status`` "running" with the ``upid``).
Source: POST /nodes/{node}/{qemu|lxc}/{vmid}/snapshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| node | No | ||
| vmid | Yes | ||
| vmstate | No | ||
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |