2016-05-12 08:39:50 +00:00
|
|
|
/v2/projects/{project_id}/nodes
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
.. contents::
|
|
|
|
|
|
|
|
POST /v2/projects/**{project_id}**/nodes
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
Create a new node instance
|
|
|
|
|
|
|
|
Parameters
|
|
|
|
**********
|
2016-06-04 08:40:39 +00:00
|
|
|
- **project_id**: Project UUID
|
2016-05-12 08:39:50 +00:00
|
|
|
|
|
|
|
Response status codes
|
|
|
|
**********************
|
|
|
|
- **400**: Invalid request
|
|
|
|
- **201**: Instance created
|
|
|
|
|
|
|
|
Input
|
|
|
|
*******
|
|
|
|
.. raw:: html
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
|
2016-06-04 08:40:39 +00:00
|
|
|
<tr><td>command_line</td> <td> </td> <td>['null', 'string']</td> <td>Command line use to start the node</td> </tr>
|
2016-05-12 08:39:50 +00:00
|
|
|
<tr><td>compute_id</td> <td> </td> <td>string</td> <td>Compute identifier</td> </tr>
|
|
|
|
<tr><td>console</td> <td> </td> <td>['integer', 'null']</td> <td>Console TCP port</td> </tr>
|
2016-06-04 08:40:39 +00:00
|
|
|
<tr><td>console_host</td> <td> </td> <td>string</td> <td>Console host</td> </tr>
|
|
|
|
<tr><td>console_type</td> <td> </td> <td>enum</td> <td>Possible values: serial, vnc, telnet, null</td> </tr>
|
2016-07-11 13:37:57 +00:00
|
|
|
<tr><td>height</td> <td> </td> <td>integer</td> <td>Height of the node</td> </tr>
|
2016-06-14 08:24:55 +00:00
|
|
|
<tr><td>label</td> <td> </td> <td>object</td> <td></td> </tr>
|
2016-05-12 08:39:50 +00:00
|
|
|
<tr><td>name</td> <td> </td> <td>string</td> <td>Node name</td> </tr>
|
2016-06-04 08:40:39 +00:00
|
|
|
<tr><td>node_directory</td> <td> </td> <td>['null', 'string']</td> <td>Working directory of the node. Read only</td> </tr>
|
|
|
|
<tr><td>node_id</td> <td> </td> <td>string</td> <td>Node UUID</td> </tr>
|
|
|
|
<tr><td>node_type</td> <td> </td> <td>enum</td> <td>Possible values: cloud, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu</td> </tr>
|
|
|
|
<tr><td>project_id</td> <td> </td> <td>string</td> <td>Project UUID</td> </tr>
|
2016-05-12 08:39:50 +00:00
|
|
|
<tr><td>properties</td> <td> </td> <td>object</td> <td>Properties specific to an emulator</td> </tr>
|
2016-06-04 08:40:39 +00:00
|
|
|
<tr><td>status</td> <td> </td> <td>enum</td> <td>Possible values: stopped, started, suspended</td> </tr>
|
2016-06-14 08:24:55 +00:00
|
|
|
<tr><td>symbol</td> <td> </td> <td>string</td> <td>Symbol of the node</td> </tr>
|
2016-07-11 13:37:57 +00:00
|
|
|
<tr><td>width</td> <td> </td> <td>integer</td> <td>Width of the node</td> </tr>
|
|
|
|
<tr><td>x</td> <td> </td> <td>integer</td> <td>X position of the node</td> </tr>
|
|
|
|
<tr><td>y</td> <td> </td> <td>integer</td> <td>Y position of the node</td> </tr>
|
|
|
|
<tr><td>z</td> <td> </td> <td>integer</td> <td>Z position of the node</td> </tr>
|
2016-05-12 08:39:50 +00:00
|
|
|
</table>
|
|
|
|
|
|
|
|
Output
|
|
|
|
*******
|
|
|
|
.. raw:: html
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
|
2016-06-04 08:40:39 +00:00
|
|
|
<tr><td>command_line</td> <td> </td> <td>['null', 'string']</td> <td>Command line use to start the node</td> </tr>
|
2016-05-12 08:39:50 +00:00
|
|
|
<tr><td>compute_id</td> <td> </td> <td>string</td> <td>Compute identifier</td> </tr>
|
|
|
|
<tr><td>console</td> <td> </td> <td>['integer', 'null']</td> <td>Console TCP port</td> </tr>
|
2016-06-04 08:40:39 +00:00
|
|
|
<tr><td>console_host</td> <td> </td> <td>string</td> <td>Console host</td> </tr>
|
|
|
|
<tr><td>console_type</td> <td> </td> <td>enum</td> <td>Possible values: serial, vnc, telnet, null</td> </tr>
|
2016-07-11 13:37:57 +00:00
|
|
|
<tr><td>height</td> <td> </td> <td>integer</td> <td>Height of the node</td> </tr>
|
2016-06-14 08:24:55 +00:00
|
|
|
<tr><td>label</td> <td> </td> <td>object</td> <td></td> </tr>
|
2016-05-12 08:39:50 +00:00
|
|
|
<tr><td>name</td> <td> </td> <td>string</td> <td>Node name</td> </tr>
|
2016-06-04 08:40:39 +00:00
|
|
|
<tr><td>node_directory</td> <td> </td> <td>['null', 'string']</td> <td>Working directory of the node. Read only</td> </tr>
|
|
|
|
<tr><td>node_id</td> <td> </td> <td>string</td> <td>Node UUID</td> </tr>
|
|
|
|
<tr><td>node_type</td> <td> </td> <td>enum</td> <td>Possible values: cloud, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu</td> </tr>
|
|
|
|
<tr><td>project_id</td> <td> </td> <td>string</td> <td>Project UUID</td> </tr>
|
2016-05-12 08:39:50 +00:00
|
|
|
<tr><td>properties</td> <td> </td> <td>object</td> <td>Properties specific to an emulator</td> </tr>
|
2016-06-04 08:40:39 +00:00
|
|
|
<tr><td>status</td> <td> </td> <td>enum</td> <td>Possible values: stopped, started, suspended</td> </tr>
|
2016-06-14 08:24:55 +00:00
|
|
|
<tr><td>symbol</td> <td> </td> <td>string</td> <td>Symbol of the node</td> </tr>
|
2016-07-11 13:37:57 +00:00
|
|
|
<tr><td>width</td> <td> </td> <td>integer</td> <td>Width of the node</td> </tr>
|
|
|
|
<tr><td>x</td> <td> </td> <td>integer</td> <td>X position of the node</td> </tr>
|
|
|
|
<tr><td>y</td> <td> </td> <td>integer</td> <td>Y position of the node</td> </tr>
|
|
|
|
<tr><td>z</td> <td> </td> <td>integer</td> <td>Z position of the node</td> </tr>
|
2016-05-12 08:39:50 +00:00
|
|
|
</table>
|
|
|
|
|
|
|
|
Sample session
|
|
|
|
***************
|
|
|
|
|
|
|
|
|
|
|
|
.. literalinclude:: ../../../examples/controller_post_projectsprojectidnodes.txt
|
|
|
|
|
|
|
|
|
|
|
|
GET /v2/projects/**{project_id}**/nodes
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
List nodes of a project
|
|
|
|
|
|
|
|
Parameters
|
|
|
|
**********
|
2016-06-04 08:40:39 +00:00
|
|
|
- **project_id**: Project UUID
|
2016-05-12 08:39:50 +00:00
|
|
|
|
|
|
|
Response status codes
|
|
|
|
**********************
|
2016-06-04 08:40:39 +00:00
|
|
|
- **200**: List of nodes returned
|
2016-05-12 08:39:50 +00:00
|
|
|
|
|
|
|
Sample session
|
|
|
|
***************
|
|
|
|
|
|
|
|
|
|
|
|
.. literalinclude:: ../../../examples/controller_get_projectsprojectidnodes.txt
|
|
|
|
|