/v2/computes
------------------------------------------------------------------------------------------------------------------------------------------
.. contents::
POST /v2/computes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Register a compute server
Response status codes
**********************
- **201**: Compute server added
Input
*******
.. raw:: html
| Name | Mandatory | Type | Description |
| compute_id | | string | Server identifier |
| host | | string | Server host |
| name | | string | Server name |
| password | | ['string', 'null'] | Password for authentication |
| port | | integer | Server port |
| protocol | | enum | Possible values: http, https |
| user | | ['string', 'null'] | User for authentication |
Output
*******
.. raw:: html
| Name | Mandatory | Type | Description |
| compute_id | ✔ | string | Server identifier |
| connected | ✔ | boolean | Whether the controller is connected to the compute server or not |
| host | ✔ | string | Server host |
| name | ✔ | string | Server name |
| port | ✔ | integer | Server port |
| protocol | ✔ | enum | Possible values: http, https |
| user | | ['string', 'null'] | User for authentication |
| version | | ['string', 'null'] | Version of the GNS3 remote compute server |
GET /v2/computes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
List of compute servers
Response status codes
**********************
- **200**: Compute servers list returned