Apache CloudStack 4.17.0.0 Root Admin API Reference

scaleVirtualMachine

Scales the virtual machine to a new service offering. This command also takes into account the Volume and it may resize the root disk size according to the service offering.

Request parameters

Parameter NameDescriptionRequired
idThe ID of the virtual machinetrue
serviceofferingidthe ID of the service offering for the virtual machinetrue
automigrateFlag for automatic migration of the root volume with new compute offering whenever migration is required to apply the offeringfalse
detailsname value pairs of custom parameters for cpu,memory and cpunumber. example details[i].name=valuefalse
maxiopsNew maximum number of IOPS for the custom disk offeringfalse
miniopsNew minimum number of IOPS for the custom disk offeringfalse
shrinkokVerify OK to Shrinkfalse

Response Tags

Response NameDescription
displaytextany text associated with the success or failure
successtrue if operation is executed successfully