I came across this code in 4.4 recently: commit e5cfe948186b825d2b28c99ce2915a5ca8498aff Author: Bharat Kumar <bharat.ku...@citrix.com> Date: Thu Nov 28 12:34:16 2013 +0530
CLOUDSTACK-5160 add a map to specify the custom compute parameters in the deployvm api. Signed-off-by: Jayapal <jaya...@apache.org> It looks like you can set certain details to override the compute offering in deployVirtualMachine. Since these aren't specific API parameters, however, how are the supported items documented? - @Parameter(name = ApiConstants.CPU_SPEED, - type = CommandType.INTEGER, - since = "4.3", - description = "optional field to specify the cpu speed when using dynamic compute offering.") - private Integer cpuSpeed; - - @Parameter(name = ApiConstants.MEMORY, - type = CommandType.INTEGER, - since = "4.3", - description = "optional field to specify the memory when using dynamic compute offering") - private Integer memory; - - @Parameter(name = ApiConstants.CPU_NUMBER, - type = CommandType.INTEGER, - since = "4.3", - description = "optional field to specify the number of cpu cores when using dynamic offering.") - private Integer cpuNumber; - - @Parameter(name = ApiConstants.ROOT_DISK_SIZE, - type = CommandType.LONG, - since = "4.3", - description = "optional field to specify the number of cpu cores when using dynamic offering.") - private Long rootdisksize; + @Parameter(name = ApiConstants.CUSTOM_PARAMETERS, + type = CommandType.MAP, + since= "4.3", + description = "used to specify the custom parameters.") + private Map customParameters;