Comment #3 on issue 111 by [email protected]: http request body programmatically to perform POST /2/instances (i.e. create instance)
http://code.google.com/p/ganeti/issues/detail?id=111

You tried to create an instance using the following request:

{"pnode":"x3400","disk_template":"plain", "disks":[0],"disk.sizes":[4096],"beparams":{"memory":512}, 
"os":"altbootstrap+kvm","name":"s210"}

This is almost correct. The following should work (“#” marks comments):

{
"__version__": 1, # Required, see documentation
"pnode":"x3400",
"disk_template": "plain",
"disks": [{"size": 4096}], # A list of dictionaries
"beparams": {"memory":512},
"os": "altbootstrap+kvm",
"name":"s210"
}

Please use version 1 requests only. Version 0 is already deprecated.

Reply via email to