When I make the api call to get a deployments resources the items that are of type Cloud.vSphere.Machine have a property of "zone" which has a value showing the ESX Cluster name. I think this should be the zone not the compute resource within the zone? There is also a property labeled "region" which does seem to correctly reflect the region. Does anyone know how to get the actual zone? I don't see an id or a link of any sort that would take me to that object. I want to be able to include the zone in some reporting and otherwise pull it programatically for a deployments or individual resources.
GET https://vra8.corp.local/provisioning/uerp/resources/compute/01ab0a1f-addc-49b0-84c7-99b7b7718467
customProperties["__vmw:provisioning:cloudZone"] -> a5f4c0ff-4cd5-4618-8c4c-6b95390e59c1
GET https://vra8.corp.local/iaas/api/zones/a5f4c0ff-4cd5-4618-8c4c-6b95390e59c1
GET https://vra8.corp.local/provisioning/uerp/resources/compute/01ab0a1f-addc-49b0-84c7-99b7b7718467
customProperties["__vmw:provisioning:cloudZone"] -> a5f4c0ff-4cd5-4618-8c4c-6b95390e59c1
GET https://vra8.corp.local/iaas/api/zones/a5f4c0ff-4cd5-4618-8c4c-6b95390e59c1
@xian_ to the rescue again! Thanks so much will give this a whirl but I'm sure you're correct.
Once we renew our support and I hopefully have developer support I will file this as a bug. This information should be available to easily link. The actual cloudZone id and/or name should be a part of the deployment and it's resources. The property of the resource labeled "zone" should be zoneResource or zoneCompute or something more accurate. Feels like a mistake to me. Really should not need tribal knowledge to link it all up.
It is part of below api
/deployment/api/deployments/{deploymentid}/resources?resourceTypes=Cloud.vSphere.Machine
@qc4vmware what is this "developer support"?
This thing? https://www.vmware.com/support/services/sdk.html
Yeah I think that is it... and we are not signing up for it unfortunately 😞