When querying events via the DX NetOps Spectrum RESTful API using the rs:get-event-request schema, the response returns the Event ID and requested model attributes but does not include the formatted event message or event variables by default. This occurs even when the event (such as 0x82105a for configuration changes) contains necessary data in the OneClick view.
To retrieve the formatted event message and associated event variables through the REST API, include the internal attribute 0x4820007 in the request payload.
Follow these steps to modify the XML request:
Open the XML body for the rs:get-event-request.
Add the attribute ID 0x4820007 to the <rs:requested-attribute> section.
Example Request Snippet:
<?xml version="1.0" encoding="UTF-8"?><rs:get-event-request xmlns:rs="http://www.ca.com/spectrum/restful/schema/request"> <rs:get-events-filter start-time="####" end-time="####" include-events="0x82105a" /> <rs:requested-attribute id="0x1006e" /> <!-- Model Name --> <rs:requested-attribute id="0x4820007" /> <!-- Event Message/Variables --></rs:get-event-request>
Execute the API call. The response now contains the full event text, such as: "The current configuration model: 0x####".
or further guidance on API structures, see the .