An extension service can request that VMware Cloud Director add an event message to the event stream of an organization.
The system always creates an event message when a service posts a Task to an organization's tasks list. To create additional event messages, a service can POST an Event element to an organization's events URL.
Prerequisites
This operation is restricted to system administrators.
Procedure
Example: Add an Event to an Organization's Event Stream
Request:
POST https://vcloud.example.com/api/admin/org/26/events Content-Type: application/vnd.vmware.admin.event+xml ... <?xml version="1.0" encoding="UTF-8"?> <Event success="true" serviceNamespace="org.example.vcd.backup" type="backupComplete"> <Owner type="application/vnd.vmware.vcloud.organization+xml" name="Finance" href="https://vcloud.example.com/api/admin/org/26" /> <User type="application/vnd.vmware.admin.user+xml" name="bob" href="https://vcloud.example.com/api/admin/user/39" /> </Event>
Response:
204 No Content