which fields are required in creating server for v2.1
? I send these data but it has the below error.
{"computeFault":{"code":500,"message":"Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible."}}
Are there any other parameters that I should send?
input:
'server' => [
"name" => "new-server-test",
"flavorRef" => "ea...",
"OS-DCF:diskConfig" => "AUTO",
"imageRef" => "8a...",
"key_name" => "mykey",
"user_data" => "QWR.W4="
]
How can I achieve user_data
? I read in the documentation that it is the configuration information or scripts to use upon launch. Must be Base64 encoded
. However, I do not know how to get it via api.
Edit:
I send request to :8774/v2.1/servers
by curl
. I have the admin token in the header
.
I also added the networks parameter in the server array as the input but It doesnot work.
'networks' => [
['uuid' => 'network_id']
],
I am using Victoria
.
My current version by sending request to :8774
is 2.87
. Its id is 2.1
.
input:
{"server":{"name":"new-server-test","flavorRef":"ea...","OS-DCF:diskConfig":"AUTO","imageRef":"8ad...","key_name":"mykey","networks":[{"uuid":"8ce..."}]}}