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

Custom name for vm via VM Clone using Rest API


Forum|alt.badge.img+1

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": [
    {
      "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

0 replies

Be the first to reply!