Menu

ReadCommand

Jim

Read a certain Command

Returns an existing Command in the domain of an owner identified by the apikey

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

Parameters

  • apikey
  • device_name
  • actor_name
  • command_id

Errors:

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

Example

GET http://localhost/cs-ws/resources/admin/command?device_name=TempDev2&
command_id=8&apikey=1234&actor_name=Valve1 HTTP/1.1

HTTP/1.1 200 OK
<command>
   <activation_time>2012-08-31 21:56:54.036</activation_time>
   <actor>Valve1</actor>
   <execution_time>2012-08-31 21:56:58.036</execution_time>
   <id>8</id>
   <model>TemperatureDevice</model>
   <name>TempDev2</name>
   <parameter>
      <name>WaterValve</name>
      <value>2</value>
   </parameter>
   <status>Ok</status>
</command>

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.