URL
/rw/cfg/{domain}/{type}/instances
Method
POST
URL Params
action=create-default Required
See Common URL parameters
Data Params
- name name of instance Required
see Get actions on CFG instances
Resources
- instancename Created Instance name.
- instancename Created Instance Id.
Success Response
- CREATED(201)
- Location header: instances/{instancename}
see HTTP Status codes
Example Response
<?xml version="1.0" encoding="UTF-8"?>
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="https://localhost/rw/cfg/"/>
</head>
<body>
<div class="state">
<a href="MOC/JOG_PARAMETERS/instances/create-default" rel="self"/>
<ul>
<li class="cfg-create-default" title="create-default">
<span class="instancename">testinstance</span>
<span class="instanceid">276006816</span>
</li>
</ul>
</div>
</body>
</html>
Error Response
BAD_REQUEST(400)
HTTP Errors, see HTTP Status codes
Robot controller errors, See Robot controller return codes
Sample Call
Create default CFG instance
curl --digest -u "Default User":robotics -d "name=testinstance" -X POST "http://localhost/rw/cfg/eio/INDUSTRIAL_NETWORK/instances?action=create-default"
Notes
Use location header to fetch information about newly created resource.
Not supported in bootserver mode