Robot Web Services
3HAC050973-001 Revision:M, Application Manual - Robot Web Services
Get Actions on a CFG domain

Get a list of actions that can be performed on the CFG domain.

URL

/rw/cfg/{domain}

Method

GET

URL Params

action=show Required

Returns action forms for this resource

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>cfg</title>
    <base href="http://localhost/rw/cfg/"/>
</head>
<body>
    <div class="state">
         <form id="saveas" method='post' action="sio?action=saveas">
            <input type="text" name="filepath"/>
        </form>
        <form name="reset" method='post' action="sio?action=reset">
        </form>
    </div>
</body>
</html>

Actions

  • saveas - Save the CFG domain to the given file.
    • filepath=[file path] Required
  • reset - Remove all external instances in a CFG domain.

Error Response

BAD_REQUEST(400)

Robot controller errors, See Robot controller return codes

Sample Call

Get actions supported by a CFG domain

curl --digest -u "Default User":robotics "http://localhost/rw/cfg/sio?action=show"

Save the CFG domain to the given file.

curl --digest -u "Default User":robotics -d "filepath=/fileservice/$HOME/a.cfg" -X POST "http://localhost/rw/cfg/sio?action=saveas"

Remove all external instances in a CFG domain

curl --digest -u "Default User":robotics -X POST "http://localhost/rw/cfg/sio?action=reset"

Notes

CFG Mastership is handled internally if not explicit held by the client.

Not supported in bootserver mode