Hello,
I am trying to resolve some of the contents of an AMQP message we receive for a failure event. The names of some events are more helpful than the UUID. In particular, I'm looking to retrieve the vApp name (among other data) using the uuid provided. Here is a sample of the xml that is generated from the AMQP message:
<?xml version="1.0" encoding="UTF-8"?><vmext:Notification xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" type="com/vmware/vcloud/event/task/complete" eventId="dfa10892-e93a-4b7d-8201-cbac0713fee3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/extension/v1.5 http://172.16.254.25/api/v1.5/schema/vmwextensions.xsd"> <vmext:Link rel="entityResolver" href="https://172.16.254.25/api/entity/"/> <vmext:EntityLink rel="entity" type="vcloud:task" name="vappDeploy" id="urn:vcloud:task:338bfbfa-09ee-49c3-8b49-883251099f5d"/> <vmext:EntityLink rel="down" type="vcloud:user" name="system" id="urn:vcloud:user:ac696d01-12d9-4763-9fd6-26a06b6a3778"/> <vmext:EntityLink rel="up" type="vcloud:org" name="ORG" id="urn:vcloud:org:3cde66f6-a81e-47a0-ace0-80725d158604"/> <vmext:EntityLink rel="task:owner" type="vcloud:vapp" id="urn:vcloud:vapp:94144a90-04f4-41c3-87a5-722d7b219634"/> <vmext:Timestamp>2013-07-31T16:36:28.170-04:00</vmext:Timestamp> <vmext:OperationSuccess>false</vmext:OperationSuccess></vmext:Notification>
And here is a JSON message that is also generated with the same event.
{"eventId":"dfa10892-e93a-4b7d-8201-cbac0713fee3","type":"com/vmware/vcloud/event/task/complete","operationSuccess":false,"timestamp":"2013-07-31 16:36:28.170","user":"urn:vcloud:user:ac696d01-12d9-4763-9fd6-26a06b6a3778","org":"urn:vcloud:org:3cde66f6-a81e-47a0-ace0-80725d158604","entity":"urn:vcloud:task:338bfbfa-09ee-49c3-8b49-883251099f5d","taskOwner":"urn:vcloud:vapp:94144a90-04f4-41c3-87a5-722d7b219634"}
I currently have some code in vCO that can extract the UUIDs. However, I cannot seem to figure out how to query VCloud for the object properties using the UUIDs.
Any examples on how to do this is greatly appreciated.