2015-02-17 11:37:09 +02:00
|
|
|
/v1/projects/{project_id}/dynamips/devices
|
|
|
|
----------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
.. contents::
|
|
|
|
|
|
|
|
POST /v1/projects/**{project_id}**/dynamips/devices
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
Create a new Dynamips device instance
|
|
|
|
|
|
|
|
Parameters
|
|
|
|
**********
|
|
|
|
- **project_id**: UUID for the project
|
|
|
|
|
|
|
|
Response status codes
|
|
|
|
**********************
|
|
|
|
- **400**: Invalid request
|
|
|
|
- **201**: Instance created
|
|
|
|
- **409**: Conflict
|
|
|
|
|
|
|
|
Input
|
|
|
|
*******
|
|
|
|
.. raw:: html
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
|
2015-03-30 12:05:54 +03:00
|
|
|
<tr><td>device_id</td> <td> </td> <td></td> <td>Dynamips device instance identifier</td> </tr>
|
2015-02-17 11:37:09 +02:00
|
|
|
<tr><td>device_type</td> <td>✔</td> <td>string</td> <td>Dynamips device type</td> </tr>
|
|
|
|
<tr><td>name</td> <td>✔</td> <td>string</td> <td>Dynamips device name</td> </tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
Output
|
|
|
|
*******
|
|
|
|
.. raw:: html
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
|
|
|
|
<tr><td>device_id</td> <td>✔</td> <td>string</td> <td>Dynamips router instance UUID</td> </tr>
|
|
|
|
<tr><td>mappings</td> <td> </td> <td>object</td> <td></td> </tr>
|
|
|
|
<tr><td>name</td> <td>✔</td> <td>string</td> <td>Dynamips device instance name</td> </tr>
|
|
|
|
<tr><td>ports</td> <td> </td> <td>array</td> <td></td> </tr>
|
|
|
|
<tr><td>project_id</td> <td>✔</td> <td>string</td> <td>Project UUID</td> </tr>
|
|
|
|
</table>
|
|
|
|
|