Quantcast
Channel: Proxmox Support Forum
Viewing all articles
Browse latest Browse all 170574

How to RESIZE through API?

$
0
0
This code doesn't work, unfortunately the API documentation not yet complete. Don't know if array name of 'disk' and 'size' are the corrects one.
Code:

$svr_hostname = 'dsi-094114';
$vmid = 100;

$hdd_settings = array();
$hdd_settings['disk'] = 'ide0';
$hdd_settings['size'] = '+25';
$pve2->put("/nodes/$svr_hostname/qemu/$vmid/resize", $hdd_settings);

Any idea?

Viewing all articles
Browse latest Browse all 170574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>