5.5

Table Of Contents
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
type="application/vnd.vmware.admin.amqpSettingsTest+xml"
href="https://vcloud.example.com/api/admin/extension/settings/amqp/action/test"
... >
<vcloud:Link
rel="up"
type="application/vnd.vmware.admin.amqpSettings+xml"
href="https://vcloud.example.com/api/admin/extension/settings/amqp" />
<vmext:Valid>true</vmext:Valid>
</vmext:AmqpSettingsTest>
Notification Message Format
All messages that the vCloud Director AMQP service sends contain an AMQP routing key and a
Notification element.
The Notification element is defined in the vCloud API schema. The routing key format is defined by the
AMQP specification.
Routing Key Format
The routing key for a vCloud Director AMQP message has the following form:
operationSuccess.entity.org.user.subType1.subType2...subTypeN.[taskName]
Routing key components include:
operationSuccess
A Boolean value denoting whether the operation that triggered the
notification succeeded or failed.
entity
The object identifier of the object on which an operation, an event of type
com/vmware/vcloud/event/, triggered the notification. For more information
about object identifiers, see “Objects, References, and Representations,” on
page 12.
org
The object identifier of the organization that owns the affected object.
user
The object identifier of the user who made the request.
subType1-subTypeN
Each subType is a single component of the event type name. See “Notification
Types,” on page 314.
taskName
If entity is a task or blocking task, the task name is appended to the routing
key.
The following routing key, in which the object identifiers are truncated to save space, is an example of a
routing key that might have been created for a successful com/vmware/vcloud/event/vapp/create event:
true.dc6a-xxx.0b8a-xxx.832c-xxx.com.vmware.vcloud.event.vapp.create
Notification Headers
The vCloud API defines notification headers and prepends them to every notification.
Table 101. Notification Headers
Header Value
notification.type See “Notification Types,” on page 314.
notification.entityType The type of vCloud entity is associated with this
notification. For example, vm.
vCloud API Programming Guide
312 VMware, Inc.