Returns the form to be used for setting the server time
URL
/ctrl/clock/timeserver
Method
GET
URL Params
- resource=servertime Required
- server-ip = {server ip} Required
See Common URL parameters
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/clock/timeserver/" />
</head>
<body>
<div class="state">
<a href="" rel="self"></a>
<a href="?resource=servertime&server-ip=129.6.15.28" rel="self"></a>
<ul>
<li class="ctrl-servertime" title="servertime">
<span class="time">1531131983</span>
</li>
</ul>
</div>
</body>
</html>
Resources
- ctrl-servertimer gets the server time
Error Response
See Robot controller return codes
Sample Call
curl --digest -u "Default User":robotics "http://localhost/ctrl/clock/timeserver?resource=servertime&server-ip=129.6.15.28"
Notes
Available only for RC
Not supported in bootserver mode