Create¶
proxmox create --help¶
Input:
Output:
Usage: proxmox create [OPTIONS] PATH
Create new resources in the Proxmox API.
Sends a POST request to create a resource. Parameters can be passed via:
- -d/--data flags: repeatable key=value pairs
- -f/--json-file: JSON file with bulk parameters
Examples:
# Create VM via individual parameters
proxmox create /nodes/pve/qemu -d vmid=100 -d name=web-vm
# Create VM from JSON file
proxmox create /nodes/pve/qemu -f vm.json
# Create with JSON output
proxmox create /nodes/pve/qemu -d vmid=100 -d name=web-vm --json
# Create storage with multiple parameters
proxmox create /nodes/pve/storage \
-d storage=nfs-backup -d type=nfs \
-d server=10.0.0.5 -d path=/mnt/backup
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * path TEXT API path where to create [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.222