...
Universal Controller supports the following RESTful-based web service for Universal Events.
Formatting specifications for the web service, including details about parameter requirements, are provided.
Authorization to publish a Universal Event is assigned by the Universal Event Create permission, or by the ops_admin role.
Note |
---|
|
When publishing Universal Events through the Web Service API, take into consideration both Universal Controller server and Database server sizings. |
Anchor |
---|
| Universal Event Publishing |
---|
| Universal Event Publishing |
---|
|
Publish Universal Event
| Description |
URI | http://host_name/uc/resources/universalevent/publish |
Description | Publsh a global Universal Event. |
HTTP Method | POST |
Example URI | http://localhost:8080/uc/resources/universalevent/publish |
Authentication | HTTP Basic |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example Responses | Status 200 Status 400 Invalid Time To Live. Value must be non-negative or empty. Universal Event attributes unknown for Universal Event Template "{eventname}". Universal Event attribute name required. Universal Event attribute "{attributename}" duplicated. Universal Event attribute "{attributename}" unknown for Universal Event Template "{eventname}". Universal Event attribute value "{attributevalue}" for attribute "{attributename}" is not a valid integer. Universal Event attribute value "{attributevalue}" for attribute "{attributename}" is not a valid float.
Status 403 Status 404 Status 500
|
Anchor |
---|
| Universal Event Publishing Examples |
---|
| Universal Event Publishing Examples |
---|
|
Publish Universal Event: XML and JSON ...
Example Request
XML Request | JSON Request |
---|
Expand |
---|
| <?xml version="1.0" encoding="UTF-8" ?>
<universalEvent>
<name>ExampleEvent</name>
<businessServices>
<businessService>BusinessServiceName1</businessService>
<businessService>BusinessServiceName2</businessService>
</businessServices>
<ttl>60</ttl>
<attributes>
<attribute>
<name>example_attribute1</name>
<value>Value1</value>
</attribute>
<attribute>
<name>example_attribute2</name>
<value>Value2</value>
</attribute>
</attributes>
</universalEvent>
|
| Expand |
---|
| {
"name": "ExampleEvent",
"businessServices": [
"BusinessServiceName1",
"BusinessServiceName2"
],
"ttl": 60,
"attributes": [
{
"name": "example_attribute1",
"value": "Value1"
},
{
"name": "example_attribute2",
"value": "Value2"
}
]
}
|
|
...