Menu

ReadDeviceModel

Jim

Read a certain Device Model

Returns an existing Device Model in the domain of an owner identified by the apikey

Path: cs-ws/resources/admin/devicemodel Method: GET

Parameters

  • apikey
  • devicemodel_name

Errors:

  • 401 UNAUTHORIZED if key is invalid
  • 404 NOT FOUND if the device model is not found

Example

GET http://localhost/cs-ws/resources/admin/devicemodel/
?devicemodel_name=MyTemperatureDeviceModel&apikey=1234 HTTP/1.1

HTTP/1.1 200 OK
<devicemodel>
   <actor>
      <model>WaterValve</model>
      <name>position</name>
   </actor>
   <config>
      <displayname>Maximum Position</displayname>
      <name>maxpos</name>
   </config>
   <name>MyTemperatureDeviceModel</name>
   <sensor>
      <model>SimpleTemperatureSensorModel</model>
      <name>TemperatureSensor</name>
   </sensor>
</devicemodel>

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.