5.1

Table Of Contents
3 Enable or disable notifications.
a Retrieve the NotificationsSettings element.
Make a GET request to the href value of the application/vnd.vmware.admin.notificationsSettings
+xml link.
b Modify the value of the EnableNotifications element to enable or disable notifications.
c Update the modified element with the new contents.
PUT the modified element to the href value of its rel="edit" link.
4 Review or modify system AMQP settings.
a Retrieve the AmqpSettings element.
Make a GET request to the href value of the application/vnd.vmware.admin.amqpSettings+xml link
described in Step 2.
b Modify the contents of this element as necessary.
See the schema reference for details of element contents.
c Update the modified element with the new contents.
PUT the modified element to the href value of its rel="edit" link. See “Example: Update AMQP
Settings,” on page 265
Example: Update AMQP Settings
This request modifies the AMQP settings for a cloud to require the use of SSL for AMQP connections, and to
change the AMQP exchange type from amq.direct to amq.fanout. RabbitMQ declares these exchange types by
default. For more information, see the RabbitMQ documentation.
Request:
PUT https://vcloud.example.com/api/admin/extension/settings/amqp
Content-Type: application/vnd.vmware.admin.amqpSettings+xml
...
<?xml version="1.0" encoding="UTF-8"?>
<AmqpSettings
xmlns="http://www.vmware.com/vcloud/extension/v1.5">
<AmqpHost />
<AmqpPort>5672</AmqpPort>
<AmqpUsername>guest</AmqpUsername>
<AmqpPassword>Pa55w0rd</AmqpPassword>
<AmqpExchange>amq.direct</AmqpExchange>
<AmqpVHost>/</AmqpVHost>
<AmqpUseSSL>true</AmqpUseSSL>
</AmqpSettings>
The response includes information supplied in the request, and contains a link you can use to test the settings.
The value of AmqpPassword, which you must supply when you modify AmqpSettings (even if you are not
changing its value), is never returned when you retrieve AmqpSettings.
Response:
200 OK
Content-Type: application/vnd.vmware.admin.amqpSettings+xml
...
<AmqpSettings
xmlns="http://www.vmware.com/vcloud/extension/v1.5"
Chapter 10 Configuring and Using Blocking Tasks and Notifications
VMware, Inc. 265