1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-23 23:38:21 +00:00

Add missing doc pages.

This commit is contained in:
grossmj 2018-08-16 21:50:54 +07:00
parent 8699f2e2b0
commit 1e33e94c15
6 changed files with 101 additions and 0 deletions

View File

@ -0,0 +1,29 @@
/v2/compute/projects/{project_id}/qemu/nodes/{node_id}/resize_disk
------------------------------------------------------------------------------------------------------------------------------------------
.. contents::
POST /v2/compute/projects/**{project_id}**/qemu/nodes/**{node_id}**/resize_disk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Resize a Qemu VM disk image
Parameters
**********
- **project_id**: Project UUID
- **node_id**: Node UUID
Response status codes
**********************
- **201**: Instance updated
- **404**: Instance doesn't exist
Input
*******
.. raw:: html
<table>
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
<tr><td>drive_name</td> <td>&#10004;</td> <td>enum</td> <td>Possible values: hda, hdb, hdc, hdd</td> </tr>
<tr><td>extend</td> <td>&#10004;</td> <td>integer</td> <td>Number of Megabytes to extend the image</td> </tr>
</table>

View File

@ -0,0 +1,20 @@
/v2/projects/{project_id}/nodes/{node_id}/resize_disk
------------------------------------------------------------------------------------------------------------------------------------------
.. contents::
POST /v2/projects/**{project_id}**/nodes/**{node_id}**/resize_disk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Reload a node instance
Parameters
**********
- **project_id**: Project UUID
- **node_id**: Node UUID
Response status codes
**********************
- **400**: Invalid request
- **201**: Disk image resized
- **404**: Instance doesn't exist

View File

@ -0,0 +1,8 @@
Notification
-----------------------------
.. toctree::
:glob:
:maxdepth: 2
notification/*

View File

@ -0,0 +1,13 @@
/v2/notifications
------------------------------------------------------------------------------------------------------------------------------------------
.. contents::
GET /v2/notifications
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Receive notifications about the controller
Response status codes
**********************
- **200**: End of stream

View File

@ -0,0 +1,13 @@
/v2/notifications/ws
------------------------------------------------------------------------------------------------------------------------------------------
.. contents::
GET /v2/notifications/ws
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Receive notifications about controller from a Websocket
Response status codes
**********************
- **200**: End of stream

View File

@ -0,0 +1,18 @@
/v2/projects/{project_id}/stats
------------------------------------------------------------------------------------------------------------------------------------------
.. contents::
GET /v2/projects/**{project_id}**/stats
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get a project statistics
Parameters
**********
- **project_id**: Project UUID
Response status codes
**********************
- **200**: Project statistics returned
- **404**: The project doesn't exist