attribute

Contents
casp941
Contents
Use the Attribute resource to retrieve strings for enumerated attributes.
  • Base URL
    http://<hostname><:portnumber>/spectrum/restful/attribute
GET attribute
GET attribute returns XML describing the enumerations for the specified attribute.
  • URL
    http://<hostname><:portnumber>/spectrum/restful/attribute/<attr_ID>/enums
  • HTTP Method
    GET
  • Body
    None
  • Body Content
    application/xml, application
  • Header
    application/xml, application/json
  • Output
    XML describing the enumerations for the specified attribute
URL Parameters
  • attr_ID
    Specifies the attribute ID.
    Do not use external attributes.
Example
The following URL requests the enumerations for the model class attribute (0x11ee8):
http://localhost:8080/spectrum/restful/attribute/0x11ee8/enums
The following is returned for the request:
<?xml version="1.0" encoding="UTF-8"?> <attrtibute-enum-response xmlns="http://www.ca.com/spectrum/restful/schema/response"> <attribute id="0x11ee8"/> <enum id="0" value="Unknown"/> <enum id="1" value="Other"/> <enum id="2" value="Switch"/> <enum id="3" value="Router"/> . . .