In CA Spectrum REST API Call, Post method of get Models, an Invalid attribute ID error is thrown

Document ID : KB000004870
Last Modified Date : 20/12/2018
Show Technical Document Details

An Invalid attribute ID error is thrown when a REST Call, Post method of get Models, is made if the body contains attribute ID:


Spectrum 10.x
The REST call requires the Hex value of the AttributeID.MODEL_NAME to work, not the actual (string) name of the model.

Pass the Hex value of AttributeID.MODEL_NAME, instead of String. In the PayLoad of the RestAPI for the post call, to fetch the alarms along with Spectrum attributes we must use hex values instead of Strings. For Ex:
Below is the payload

<rs:alarm-request xmlns:rs="" xmlns:xsi="" throttlesize="1000" xsi:schemaLocation=" ../../../xsd/Request.xsd ">
<search-criteria xmlns="">
<attribute id="0x11f56">


<attribute id="0x11f56">


<attribute id="0x11f56">



The following are the requested Spectrum attributes with each alarm 

<rs:requested-attribute id="0x12b4c"/>
<!--  Alarm Title  -->
<rs:requested-attribute id="0x11f56"/>
<!--  Alarm Severity  -->
<rs:requested-attribute id="0x11f52"/>
<rs:requested-attribute id="0x129ac"/> 

In this case, for the requested attributes tag, always the hex value is expected instead of AttributeID.MODEL_NAME