INC Platform - Resource Manager

Query Device Type

Query device type based on device ID.

Interface URI

/plat/res/category/{id}

Access Method

HTTP
GET
Parameters
Path parameter
id Device type ID.
Integer type. Required. No default value.

Returned Result

Status codes
  • 200 (OK): Success.
Message body
<deviceCategory>
  <id>0</id>
  <name>Router</name>
  <preDefined>true</preDefined>
</deviceCategory>
Element description
deviceCategory sub-elements
id Device type ID, which uniquely identifies a device type.
Integer type.
name Device type name.
String type.
preDefined System defined.
Boolean type.

Example

Query device type with the ID 0.

Request
GET http://host:8080/imcrs/plat/res/category/0
accept: application/xml
...
        
Response
HTTP/1.1 200 OK
Content-Type: application/xml
...
 
<deviceCategory>
  <id>0</id>
  <name>Router</name>
  <preDefined>true</preDefined>
</deviceCategory>