Preparing a move workload via API | Nutanix Community
Skip to main content

Following on from this post:

https://next.nutanix.com/move-application-migration-19/how-to-provide-guest-credentials-when-creating-move-plan-through-api-41667

Trying to add credentials to my move plan, via the prepare api -https://www.nutanix.dev/api_reference/apis/move.html#tag/Plan/operation/preparePlan

 

Anyone know the format or have an example of the prepare payload?  I have this:

{
  "Spec": {
    "RunInBackground": false,
    "GuestPrepMode": "manual",
    "CommonCredentials": {
      "WindowsPassword": "<<removed>>",
      "WindowsUserName": "user@my.domain"
    }
  },
  "VMs":
    {
      "UUID": "1234567-bd99-5555-955f-d444094bd5fb",
      "VMId": "vm-123456",
      "Password": "<<removed>>",
      "UserName": "user@my.domain"
    }
  ]
}

 

and  get the following error:

 

Invalid input parameter for operation: 'prepare migration'. Parameter: 'PrepareVMsInput VMs'

The UUID & VMId matches the VMs in the move workload.

Need to RTFM, wrong indenting….

{
"Spec": {
"RunInBackground": false,
"GuestPrepMode": "manual",
"CommonCredentials": {
"WindowsPassword": "<<removed>>",
"WindowsUserName": "user@my.domain"
},
"VMs": :
{
"UUID": "1234567-bd99-5555-955f-d444094bd5fb",
"VMId": "vm-123456",
"Password": "<<removed>>",
"UserName": "user@my.domain"
}
]
}
}

VMs is under Spec...