Apache CloudStack 4.20.0.0 Root Admin API Reference

registerUserData

Register a new userdata.

Request parameters

Parameter NameDescriptionRequired
nameName of the userdatatrue
userdataBase64 encoded userdata content. 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 valuetrue
accountan optional account for the userdata. Must be used with domainId.false
domainidan optional domainId for the userdata. If the account parameter is used, domainId must also be used.false
paramscomma separated list of variables declared in userdata contentfalse
projectidan optional project for the userdatafalse

Response Tags

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