Invalid "disk_list" input, it should be a dictionary. Details could be found in doc.

Asked by titog

I am trying to create a guest:

>>> d={
... "guest":
... {
... "user_profile": "LINDFLT",
... "disk_list":
... {
... "size": "6g",
... "is_boot_disk": True,
... "disk_pool": "ECKD:POOL1"
... },
... }
... }

>>> c.send_request('guest_create','guest1',1,1024,d)
{u'rs': 3, u'overallRC': 100, u'modID': 400, u'rc': 100, u'output': u'', u'errmsg': u'Invalid API arg format, error: Invalid "disk_list" input, it should be a dictionary. Details could be found in doc.'}

Where can I find the doc regarding the command line?

Regards,

Tito

Question information

Language:
English Edit question
Status:
Answered
For:
zVM Cloud Connector Edit question
Assignee:
nafeiyang Edit question
Last query:
Last reply:
Revision history for this message
nafeiyang (nafeiy) said :
#1

The sample can be found in RESTful APIs-> Create Guest

Revision history for this message
jichenjc (jichenjc) said :
#2

@na fei, I suggest you recheck code , the error message can be enhanced a little bit

@titog

http://cloudlib4zvm.readthedocs.io/en/latest/restapi.html has the API
please check 6.4.2 with its samples there

Revision history for this message
nafeiyang (nafeiy) said :
#3

Yes, the error message is not correct now. Will fix it later

Can you help with this problem?

Provide an answer of your own, or ask titog for more information if necessary.

To post a message you must log in.