creating new disk image via api?

jort

New Member
Nov 24, 2016
19
0
1
24
curl -X POST -k -b PVEAuthCookie=PVE:214028@pve:585A6B3D::pPp2zInx/tcNG1j/JDhKDeTAkqAFSNmuoeULOS1BsEp7MXG0K8rAcE4nyt1Bfb8xSlNJbnMzHllbhuUeeAx+uk4mFjLWXMobjeafv2xZkJ7ksWbfSUH9B/2UyFifSCLz7oKi9Imp7t/3eWPIGKWxj5njgATkcVG98v4Ju08NZUW0H1W8IyZREVtl2M0iHdOqGSPR0L4EEYASauH614mwMNsK8i4hE9btx4AfpTMzYgOKjkoZOzJIzl2BQoSAij/KlKZiYaQqBY+newOe7/islCfXVnZyD8AjOF3Gga4pw0iaUWWic8dLlUYLuAqNmbXBS33CCbqMqUItFLkxBEN+JQ== -H "CSRFPreventionToken:585A6B3D:R1f/C04TxYyCkFyuuT+O3xD8R+4" -d "node=proxmoxTestbak&storage=local&vmid=102&size=16G&filename=disk1&format=qcow2" https://10.32.5.24:8006/api2/json/storage

im using this command to create a new disk image for my VM, this just returns NULL and then proceeds to do nothing, this is run via a user that has full admin rights.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!