2016-03-11 16:16:09 +00:00
|
|
|
/v2/hypervisors
|
2016-03-07 14:01:35 +00:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------
|
2016-03-04 16:50:17 +00:00
|
|
|
|
|
|
|
.. contents::
|
|
|
|
|
2016-03-11 16:16:09 +00:00
|
|
|
POST /v2/hypervisors
|
2016-03-07 14:01:35 +00:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-03-11 14:21:21 +00:00
|
|
|
Register a hypervisor
|
2016-03-04 16:50:17 +00:00
|
|
|
|
|
|
|
Response status codes
|
|
|
|
**********************
|
2016-03-11 14:21:21 +00:00
|
|
|
- **201**: Hypervisor added
|
2016-03-04 16:50:17 +00:00
|
|
|
|
|
|
|
Input
|
|
|
|
*******
|
|
|
|
.. raw:: html
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
|
|
|
|
<tr><td>host</td> <td>✔</td> <td>string</td> <td>Server host</td> </tr>
|
2016-03-11 14:21:21 +00:00
|
|
|
<tr><td>hypervisor_id</td> <td>✔</td> <td>string</td> <td>Server identifier</td> </tr>
|
2016-03-04 16:50:17 +00:00
|
|
|
<tr><td>password</td> <td> </td> <td>string</td> <td>Password for auth</td> </tr>
|
|
|
|
<tr><td>port</td> <td>✔</td> <td>integer</td> <td>Server port</td> </tr>
|
|
|
|
<tr><td>protocol</td> <td>✔</td> <td>enum</td> <td>Possible values: http, https</td> </tr>
|
|
|
|
<tr><td>user</td> <td> </td> <td>string</td> <td>User for auth</td> </tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
Output
|
|
|
|
*******
|
|
|
|
.. raw:: html
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
|
2016-03-11 14:21:21 +00:00
|
|
|
<tr><td>connected</td> <td> </td> <td>boolean</td> <td>True if controller is connected to the hypervisor</td> </tr>
|
2016-03-04 16:50:17 +00:00
|
|
|
<tr><td>host</td> <td>✔</td> <td>string</td> <td>Server host</td> </tr>
|
2016-03-11 14:21:21 +00:00
|
|
|
<tr><td>hypervisor_id</td> <td>✔</td> <td>string</td> <td>Server identifier</td> </tr>
|
2016-03-04 16:50:17 +00:00
|
|
|
<tr><td>port</td> <td>✔</td> <td>integer</td> <td>Server port</td> </tr>
|
|
|
|
<tr><td>protocol</td> <td>✔</td> <td>enum</td> <td>Possible values: http, https</td> </tr>
|
|
|
|
<tr><td>user</td> <td> </td> <td>string</td> <td>User for auth</td> </tr>
|
2016-03-11 14:21:21 +00:00
|
|
|
<tr><td>version</td> <td> </td> <td>['string', 'null']</td> <td>Version of the GNS3 remote hypervisor</td> </tr>
|
2016-03-04 16:50:17 +00:00
|
|
|
</table>
|
|
|
|
|