Unable to resize disk using API.

Nadir

New Member
Jun 26, 2019
17
0
1
27
I am trying to increase VM Disk size. Disk is Sata0 I am using /vmid/resize API.
I am sending following array to PUT request via CURL
$fields = array(
'disk'=>"sata0",
'skiplock'=>1,
'size' =>"+1",
);
This request return Error code 500 (internal server error)

But when i put
$fields = array(
'disk'=>"sata0",
'skiplock'=>1,
'size' =>"+0",
);
then it return HTTP Status 200 (OK)

I am unable to figure out what is wrong and why I am not able to resize.
Proxmox 5.4
 
@dcsapak send me your cheeks... I wanna kiss you on your cheeks because your recommendation solved my problem
Thanks a lot.
 

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 yours easily in our online shop.

Buy now!