Get Safety Mode status
URL
/ctrl/safety
Method
GET
URL Params
resource=safety-mode Required
Data Params
None
Success Response
HTTP_OK(200), see HTTP Status codes
Example Response
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>controller</title>
<base href="http://localhost/ctrl/safety/" /> </head>
<body>
<div class="state">
<a href="" rel="self"></a>
<a href="?action=show" rel="action"></a>
<ul>
<li class="safetymodestatus" title="status">
<span class="userdata">119</span>
<span class="safetymode">active</span>
</li>
</ul>
</div>
</body>
</html>
Resources
- userdata - User Data.
- safetymode - safety Mode {SCORCH_SAFETY_MODE_ACTIVE_MODE|SCORCH_SAFETY_MODE_COMMISSIONING_MODE|SCORCH_SAFETY_MODE_SERVICE_MODE}
Error Response
BAD_REQUEST(400), see HTTP Status codes
Sample Call
curl --digest -u "Default User":robotics "http://localhost/ctrl/safety?resource=safety-mode"
Notes
Not supported in bootserver mode