Apache CloudStack 4.20.0.0 Root Admin API Reference

executeClusterDrsPlan

Execute DRS for a cluster. If there is another plan in progress for the same cluster, this command will fail.

Request parameters

Parameter NameDescriptionRequired
idID of clustertrue
migratetoVirtual Machine to destination host mapping. This parameter specifies the mapping between a vm and a host to migrate that VM. clusterid is required if this parameter is set.Format of this parameter: migrateto[vm-index].vm=<uuid>&migrateto[vm-index].host=<uuid> Where, [vm-index] indicates the index to identify the vm that you want to migrate, vm=<uuid> indicates the UUID of the vm that you want to migrate, and host=<uuid> indicates the UUID of the host where you want to migrate the vm. Example: migrateto[0].vm=<71f43cd6-69b0-4d3b-9fbc-67f50963d60b>&migrateto[0].host=<a382f181-3d2b-4413-b92d-b8931befa7e1>&migrateto[1].vm=<88de0173-55c0-4c1c-a269-83d0279eeedf>&migrateto[1].host=<95d6e97c-6766-4d67-9a30-c449c15011d1>&migrateto[2].vm=<1b331390-59f2-4796-9993-bf11c6e76225>&migrateto[2].host=<41fdb564-9d3b-447d-88ed-7628f7640cbc>false

Response Tags

Response NameDescription
idunique ID of the drs plan for cluster
clusteridId of the cluster
eventidStart event Id of the DRS Plan
migrationsList of migrations
statusStatus of DRS Plan
typeType of DRS Plan (Automated or Manual))