VMware Horizon Community
ntrippcig
Contributor
Contributor

Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines

Making a call and I have the pool ID correct and post the body in JSON:

[
  {
    "name""XXXXXXXXX",
    "user_id""S-XXXXXXXXXXXX"
  }
]
 
get this response:
{
    "status""BAD_REQUEST",
    "timestamp"1635764411101,
    "error_message""Desktop pool should be specified naming type"
}
 
Documentation says to send exactly what I am sending. What gives? what is this "Desktop pool should be specified naming type"
Reply
0 Kudos
21 Replies
JanBolk
Contributor
Contributor

Based on the idea of @RetouwNL  I created the following script to import vms from vcenter to the connection server and assign an active directory user to the vm

 

https://github.com/JustAUserAcc/VMware-Register-VMs-to-Connection-Server-by-CSV-List 

Windspirit
Hot Shot
Hot Shot

Also the ID is just the MOREF of the VM

e.g.: vm-29071

Reply
0 Kudos