Custom name for vm via VM Clone using Rest API | Nutanix Community
Skip to main content

Hi, 

 i have been trying to give custom vm name by cloning  vm via rest api 3

 But i have been receiving error overided_spec was unexpectec i.e used to provide vm name.

Input Body: {

{
"override_spec": {
"name": "Android 9 clone 26 April"
},
"metadata": {
"uuid": "a0e3e028-b53b-424c-bcbb-bf99c119fb92"
}
}

Output:

{
"api_version": "3.1",
"code": 422,
"message_list": i
{
"details": {
"":
"Additional properties are not allowed (u'override_spec' was unexpected)"
]
},
"message": "Request could not be processed.",
"reason": "INVALID_REQUEST"
}
],
"state": "ERROR"
}

overrided_spec was refered from the link:

api vm clone

Be the first to reply!

Reply