2016-05-12 08:39:50 +00:00
/v2/projects/{project_id}/nodes/{node_id}/stop
------------------------------------------------------------------------------------------------------------------------------------------
.. contents ::
POST /v2/projects/**{project_id}** /nodes/**{node_id}** /stop
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2016-06-04 08:40:39 +00:00
Stop a node instance
2016-05-12 08:39:50 +00:00
Parameters
***** *****
2018-06-14 08:39:31 +00:00
- **project_id** : Project UUID
2018-08-16 14:31:56 +00:00
- **node_id** : Node UUID
2016-05-12 08:39:50 +00:00
Response status codes
***** ***** ***** ***** **
2018-06-14 08:39:31 +00:00
- **200** : Instance stopped
2016-05-12 08:39:50 +00:00
- **400** : Invalid request
2016-06-04 08:40:39 +00:00
- **404** : Instance doesn't exist
2016-05-12 08:39:50 +00:00
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>
2017-06-29 15:14:09 +00:00
<tr><td>compute_id</td> <td>✔</td> <td>string</td> <td>Compute identifier</td> </tr>
2016-05-12 08:39:50 +00:00
<tr><td>console</td> <td> </td> <td>['integer', 'null']</td> <td>Console TCP port</td> </tr>
2018-08-16 14:31:56 +00:00
<tr><td>console_auto_start</td> <td> </td> <td>boolean</td> <td>Automatically start the console when the node has started</td> </tr>
2016-10-20 08:54:07 +00:00
<tr><td>console_host</td> <td> </td> <td>string</td> <td>Console host. Warning if the host is 0.0.0.0 or :: (listen on all interfaces) you need to use the same address you use to connect to the controller.</td> </tr>
2018-08-16 14:31:56 +00:00
<tr><td>console_type</td> <td> </td> <td>enum</td> <td>Possible values: vnc, telnet, http, https, spice, spice+agent, none, null</td> </tr>
<tr><td>custom_adapters</td> <td> </td> <td>array</td> <td></td> </tr>
2016-09-14 13:24:27 +00:00
<tr><td>first_port_name</td> <td> </td> <td>['string', 'null']</td> <td>Name of the first port</td> </tr>
2016-08-25 12:43:19 +00:00
<tr><td>height</td> <td> </td> <td>integer</td> <td>Height of the node (Read only)</td> </tr>
2016-06-14 08:24:55 +00:00
<tr><td>label</td> <td> </td> <td>object</td> <td></td> </tr>
2017-06-29 15:14:09 +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>
2018-06-07 08:26:06 +00:00
<tr><td>node_type</td> <td>✔</td> <td>enum</td> <td>Possible values: cloud, nat, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, traceng, virtualbox, vmware, iou, qemu</td> </tr>
2016-09-14 13:24:27 +00:00
<tr><td>port_name_format</td> <td> </td> <td>string</td> <td>Formating for port name {0} will be replace by port number</td> </tr>
<tr><td>port_segment_size</td> <td> </td> <td>integer</td> <td>Size of the port segment</td> </tr>
<tr><td>ports</td> <td> </td> <td>array</td> <td>List of node ports READ only</td> </tr>
2016-06-04 08:40:39 +00:00
<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-10-20 08:54:07 +00:00
<tr><td>symbol</td> <td> </td> <td>['string', 'null']</td> <td>Symbol of the node</td> </tr>
2018-11-28 09:12:57 +00:00
<tr><td>template_id</td> <td> </td> <td>['null', 'string']</td> <td>Template UUID from which the node has been created. Read only</td> </tr>
2016-08-25 12:43:19 +00:00
<tr><td>width</td> <td> </td> <td>integer</td> <td>Width of the node (Read only)</td> </tr>
2016-07-11 13:37:57 +00:00
<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>
2018-01-08 08:26:44 +00:00
Sample session
***** ***** *****
.. literalinclude :: ../../../examples/controller_post_projectsprojectidnodesnodeidstop.txt