Set Cmd¶
proxmox set-cmd --help¶
Input:
Output:
Usage: proxmox set-cmd [OPTIONS] PATH
Update (PUT/PATCH) resources in the Proxmox API.
Sends a PUT request to modify an existing resource. Parameters can be
passed via -d/--data flags or a JSON file. Some fields can be unset
using empty values or delete prefixes.
Examples:
# Update node description
proxmox set /nodes/pve1 -d description="Production Node 1"
# Update with multiple parameters
proxmox set /nodes/pve1 -d features=snapshot,nesting -d cpu=host
# Update from JSON file
proxmox set /nodes/pve1 -f node-update.json
# Update VM configuration
proxmox set /nodes/pve/qemu/100 -d memory=8192 -d cores=4
# Update user profile
proxmox set /access/users/user@pam -d firstname="John" -d lastname="Doe"
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * path TEXT API path to update [required] │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --data -d TEXT Data parameter (key=value, can be repeated) │
│ --json-file -f TEXT JSON file with parameters │
│ --output -o TEXT Output format (human, json, yaml, markdown, │
│ table, text, raw) │
│ --json Shortcut for --output json │
│ --yaml Shortcut for --output yaml │
│ --markdown Shortcut for --output markdown │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
Exit code: 0 · Wall time (s): 0.221