Apache CloudStack 4.23.0.0 Root Admin API Reference

createAutoScaleVmProfile

Creates a profile that contains information about the Instance which will be provisioned automatically by autoscale feature.

Request parameters

Parameter NameDescriptionRequired
serviceofferingidThe service offering of the auto deployed Instancetrue
templateidThe Template of the auto deployed Instancetrue
zoneidAvailability zone for the auto deployed Instancetrue
accountAccount that will own the autoscale Instance profilefalse
autoscaleuseridThe ID of the user used to launch and destroy the Instancesfalse
counterparamcounterparam list. Example: counterparam[0].name=snmpcommunity&counterparam[0].value=public&counterparam[1].name=snmpport&counterparam[1].value=161false
domainidDomain ID of the Account owning an autoscale Instance profilefalse
expungevmgraceperiodThe time allowed for existing connections to get closed before an Instance is expungedfalse
fordisplayAn optional field, whether to the display the profile to the end user or notfalse
otherdeployparamsParameters other than zoneId/serviceOfferringId/templateId of the auto deployed Instance. Example: otherdeployparams[0].name=serviceofferingid&otherdeployparams[0].value=a7fb50f6-01d9-11ed-8bc1-77f8f0228926&otherdeployparams[1].name=rootdisksize&otherdeployparams[1].value=10 . Possible parameters are "rootdisksize", "diskofferingid","size", "securitygroupids", "overridediskofferingid", "keypairs", "affinitygroupids'" and "networkids".false
projectidAn optional project for the autoscale Instance profilefalse
userdataAn optional binary data that can be sent to the Instance upon a successful deployment. This binary data must be base64 encoded before adding it to the request. Using HTTP GET (via querystring), you can send up to 4KB of data after base64 encoding. Using HTTP POST (via POST body), you can send up to 1MB of data after base64 encoding. You also need to change vm.userdata.max.length valuefalse
userdatadetailsused to specify the parameters values for the variables in userdata.false
userdataidthe ID of the Userdatafalse

Response Tags

Response NameDescription
idThe autoscale Instance profile ID
accountThe Account owning the Instance group
autoscaleuseridThe ID of the User used to launch and destroy the Instances
domainThe domain name of the Instance profile
domainidThe domain ID of the Instance profile
domainpathpath of the domain to which the vm profile belongs
expungevmgraceperiodThe time allowed for existing connections to get closed before an Instance is destroyed
fordisplayIs profile for display to the regular User
otherdeployparamsParameters other than zoneId/serviceOfferringId/templateId to be used while deploying an Instance
projectThe project name of the Instance profile
projectidThe project id Instance profile
serviceofferingidThe service offering to be used while deploying an Instance
templateidThe Template to be used while deploying an Instance
userdataBase64 encoded Instance user data
userdatadetailslist of variables and values for the variables declared in userdata
userdataidthe id of userdata used for the VM
userdatanamethe name of userdata used for the VM
userdatapolicythe userdata override policy with the userdata provided while deploying VM
zoneidThe availability zone to be used while deploying an Instance