REST API to expand a VMDK
Expand the size of a virtual machine disk (VMDK) by using this REST API.
The disk file of a virtual machine represents the storage volume of a virtual machine, and is suffixed with .vmdk.
- For an OS disk, use this API:
-
/admin/resources/instances/<instance-uuid>Note: This API applies to these aspects:The following example is related to this API.- Cloud Pak System Service
- Cloud Pak System Software
- Cloud Pak System System
The size of an OS disk is calculated in MB. If there are more than one OS disks, include all of them even if you want to resize only one of them. OS disks cannot be removed. See the following implementation details.PUT { "disks": [ { "id": "88b80eb3-fff6-447f-8247-183082f4d264", "size": 102400 } ] }/ipas.iaas.job/app/resources/instances.groovy /ipas.iaas.job/java/com/ibm/purescale/iaas/update/InstanceUpdateHandler.java /ipas.iaas.job/java/com/ibm/purescale/iaas/update/actions/InstanceExpandDiskAction.java
- For volumes, use this API:
-
/admin/resources/volumes/<volume-uuid>Note: This API applies to these aspects:The following example is related to this API.- Cloud Pak System System for block storage
- Cloud Pak System System for block VMFS
See the following implementation details.PUT { "size": 4096 }/ipas.iaas.job/app/scripts/volumes/vmware_volumes.groovy::handleResize(Object, Object, Object)