How do I specify disk size using API

Robertas

New Member
May 5, 2016
19
0
1
33
I am trying automate lxc container creation using proxmox API. So far I have been able to create container using /nodes/{node}/lxc api call. Looking I'm looking at documentation http://pve.proxmox.com/pve2-api-doc/ but cannot seem to find parameter for disk size, am I missing something?
 
You can provide a "rootfs" parameter (if it is just a number, this is taken as size for a newly created rootfs) and a "storage" parameter (this defines on which storage the rootfs is created). If you don't pass the rootfs parameter, a 4G rootfs is automatically assumed and created. If you don't pass a storage, "local" is assumed and used.