Robot Web Services
3HAC050973-001 Revision:M, Application Manual - Robot Web Services
Set Network configuration

Set network configuration of LAN Adaptor

URL

/ctrl/network

Method

POST

URL Params

action=set Required

See Common URL parameters

Data Params

  • method= {IP config method}, Should be one of fixip or dhcp or noip Required
  • address= {IP address}, Applicable only for setting fix IP
  • mask= {Mask address}, Applicable only for setting fix IP
  • gateway={Default Gateway}, Applicable only for setting fix IP

Success Response

Accepted (202)

Location header: /ctrl?action=show

see HTTP Status codes

Example Response

No content

Error Response

UNSUPPORTED_MEDIA(415), BAD_REQUEST(400), UNAUTHORIZED(401)

See Robot controller return codes

Sample Call

curl --digest -u "Default User":robotics -d "method=fixip&address={IP address}&mask={Mask address}&gateway={Default Gateway}" -X POST "http://localhost/ctrl/network?action=set"

Notes

  • Supported in bootserver mode.
  • Not supported by VC.
  • Controller must be restarted to reflect the changes.
  • Requires the UAS grant UAS_CONTROLLER_PROPERTIES_WRITE