The system administrator can enable or disable notification messages for events in a cloud.
Notifications are enabled by default. A system administrator can disable them.
Prerequisites
This operation is restricted to system administrators.
Procedure
Example: Enable Notifications
This request sets the value of EnableNotifications to true
. This is the default value, so you normally would not need to make this request unless notifications had been disabled by a previous request.
Request:
<?xml version="1.0" encoding="UTF-8"?> <vmext:NotificationsSettings xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" type="application/vnd.vmware.admin.notificationsSettings+xml"> <vmext:EnableNotifications>true</vmext:EnableNotifications> </vmext:NotificationsSettings>
The response contains information extracted from the request, and adds an edit
link that you can use to change the value of this element.
Response:
200 OK ... <vmext:NotificationsSettings xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" href="https://vcloud.example.com/api/admin/extension/settings/notifications" type="application/vnd.vmware.admin.notificationsSettings+xml"> <vcloud:Link rel="edit" href="https://vcloud.example.com/api/admin/extension/settings/notifications" type="application/vnd.vmware.admin.notificationsSettings+xml" /> <vmext:EnableNotifications>true</vmext:EnableNotifications> </vmext:NotificationsSettings>