ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

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


Article ID: 4870


Updated On:


CA Spectrum


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



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


Spectrum 10.x


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