Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I dug through the source code for Nova's API, and I found that it's looking for a field called "user_data". I didn't see this in the API documentation for server creation, but I may have been looking in the wrong place. The beautiful thing about open source is that you can always go find what you need in the code :)

At any rate, this is what the JSON looks like. Hope it helps someone in the future!

{
   "server": {
      "flavorRef": "http://192.168.1.200:8774/65b1d52d220c4599a1211d13b46c9b8e/flavors/2",
      "imageRef": "http://192.168.1.200:8774/v2/65b1d52d220c4599a1211d13b46c9b8e/images/a3253101-3421-48b4-9d4d-78ae45bec1c9",
      "name": "test-2",
      "user_data":"<Base64 encoded script>",
    }
}