VMware Cloud Community
Stanley_
Enthusiast
Enthusiast

vCloud Director 10 - VM policy placement via CLI/API

Hello,

is there any way how to manage "VM policy placement" the new feature in vCloud Director 10 for SP via CLI / API.

I google it and also look into vCloud Director API [ vCloud Director API - VMware API Explorer - VMware {code} ]. But didnt find a command.

or it can be manage via vCenter as this are VM Group in DRS

Thanks

Stan

0 Kudos
3 Replies
Stanley_
Enthusiast
Enthusiast

0 Kudos
novakluk
Contributor
Contributor

How it exactly works??

1) I retrieve the VM element of target virtual machine

GET https://vcdcloud.com/api/vApp/vapp-ef36fa87-186f-4a2c-816c-fad5e3cf4c1b

2) I copy all output after request from body

3) I created new request with PUT and in body I modify VDC compute policy

https://vcdcloud.com/api/vApp/vm-dbfcb645-7a84-4ac6-9631-f29695e2cf53/action/reconfigureVm

4) After apply I get error "HTTP 405 Method Not Allowed"

I am not sure, that I use API request correct

Can you send me manual how to do??

Thank you

0 Kudos
novakluk
Contributor
Contributor

Is it correct syntax method PUT in body??

Thank you for help

forum.JPG

0 Kudos