URL
/rw/iosystem/devices
Method
POST
URL Params
action=search Required
Data Params
- name = The device name e.g. DRV_1
- lstate = The device logical state e.g. enabled
- network = The device physical state e.g. DeviceNet Optional
Device name (or) device lstate is needed for search
example: name=panel&lstate=enabled (or) lstate=enabled
Success Response
HTTP_OK(200)
see HTTP Status codes
Example Response
<html>
<head>
<title>io</title>
<base href= "http://localhost/rw/iosystem/" />
</head>
<body>
<div class="state">
<a href= "devices" rel="self"/>
<a href= "devices?action=show" rel="action"/>
<ul>
<li class="ios-device-li" title="Local/DRV_1">
<a href= "devices/Local/DRV_1" rel="self"></a>
<span class="name">DRV_1</span>
<span class="lstate">enabled</span>
<span class="pstate">running</span>
<span class="address">-</span>
</li>
<li class="ios-device-li" title="Local/PANEL">
<a href= "devices/Local/PANEL" rel="self"></a>
<span class="name">PANEL</span>
<span class="lstate">enabled</span>
<span class="pstate">running</span>
<span class="address">-</span>
</li>
</ul>
</div>
</body>
</html>
Resources
- ios-device-li IO Device list item
- name IO device name
- pstate Physical state {deact, running, error, unconnect, unconfg, startup, init, unknown}
- lstate Logical state: {disabled, enabled, unknown}
- address device address
Error Response
BAD_REQUEST(400)
See Robot controller return codes
Sample Call
Search IO Devices
curl --digest -u "Default User":robotics -d "name=DRV_1&lstate=enabled&network=DeviceNet" -X POST "http://localhost/rw/iosystem/devices?action=search"
Notes
Not supported in bootserver mode