I am trying to get the IP address of a VM I created but the vCloud API returns nothing
for DHCP address even if VMWare tools are installed and are current. When I enable
static IP address, I do get the IP address but it is stale - looks like IP address was
cached and returned even though the VM got a new static IP. Is this a bug in vCloud
API? I checked this in both vCloud Director and vCloud Express - same result.
DHCP IP address - nothing returned
Static IP address - bogus IP returned sometimes
Any idea how to get the VM (DHCP) IP address reliably?
GET https://<IP>/api/v1.0/vApp/vm-id
For static IP:
<NetworkConnection Network=....>
<IpAddress>192.168.1.23</IpAddress>
</NetworkConnection>
For dynamic IP:
<NetworkConnection Network=....>
</NetworkConnection>
Thanks