mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-01 04:38:12 +00:00
Add warning unstable at the beginning of the API
This commit is contained in:
parent
4ffb2c8c20
commit
cad708f4ab
@ -5,4 +5,4 @@ Dynamips device
|
|||||||
:glob:
|
:glob:
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
dynamips_device/*
|
api.dynamips_device/*
|
@ -10,8 +10,8 @@ Add a NIO to a Dynamips device instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **port_number**: Port on the device
|
|
||||||
- **device_id**: UUID for the instance
|
- **device_id**: UUID for the instance
|
||||||
|
- **port_number**: Port on the device
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
@ -129,8 +129,8 @@ Remove a NIO from a Dynamips device instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **port_number**: Port on the device
|
|
||||||
- **device_id**: UUID for the instance
|
- **device_id**: UUID for the instance
|
||||||
|
- **port_number**: Port on the device
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
@ -10,8 +10,8 @@ Start a packet capture on a Dynamips device instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **port_number**: Port on the device
|
|
||||||
- **device_id**: UUID for the instance
|
- **device_id**: UUID for the instance
|
||||||
|
- **port_number**: Port on the device
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
@ -10,8 +10,8 @@ Stop a packet capture on a Dynamips device instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **port_number**: Port on the device
|
|
||||||
- **device_id**: UUID for the instance
|
- **device_id**: UUID for the instance
|
||||||
|
- **port_number**: Port on the device
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
@ -5,4 +5,4 @@ Dynamips vm
|
|||||||
:glob:
|
:glob:
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
dynamips_vm/*
|
api.dynamips_vm/*
|
@ -114,6 +114,7 @@ Input
|
|||||||
<tr><td>power_supplies</td> <td> </td> <td>array</td> <td>Power supplies status</td> </tr>
|
<tr><td>power_supplies</td> <td> </td> <td>array</td> <td>Power supplies status</td> </tr>
|
||||||
<tr><td>private_config</td> <td> </td> <td>string</td> <td>path to the IOS private configuration file</td> </tr>
|
<tr><td>private_config</td> <td> </td> <td>string</td> <td>path to the IOS private configuration file</td> </tr>
|
||||||
<tr><td>private_config_base64</td> <td> </td> <td>string</td> <td>private configuration base64 encoded</td> </tr>
|
<tr><td>private_config_base64</td> <td> </td> <td>string</td> <td>private configuration base64 encoded</td> </tr>
|
||||||
|
<tr><td>private_config_content</td> <td> </td> <td>string</td> <td>Content of IOS private configuration file</td> </tr>
|
||||||
<tr><td>ram</td> <td> </td> <td>integer</td> <td>amount of RAM in MB</td> </tr>
|
<tr><td>ram</td> <td> </td> <td>integer</td> <td>amount of RAM in MB</td> </tr>
|
||||||
<tr><td>sensors</td> <td> </td> <td>array</td> <td>Temperature sensors</td> </tr>
|
<tr><td>sensors</td> <td> </td> <td>array</td> <td>Temperature sensors</td> </tr>
|
||||||
<tr><td>slot0</td> <td> </td> <td></td> <td>Network module slot 0</td> </tr>
|
<tr><td>slot0</td> <td> </td> <td></td> <td>Network module slot 0</td> </tr>
|
||||||
@ -126,6 +127,7 @@ Input
|
|||||||
<tr><td>sparsemem</td> <td> </td> <td>boolean</td> <td>sparse memory feature</td> </tr>
|
<tr><td>sparsemem</td> <td> </td> <td>boolean</td> <td>sparse memory feature</td> </tr>
|
||||||
<tr><td>startup_config</td> <td> </td> <td>string</td> <td>path to the IOS startup configuration file</td> </tr>
|
<tr><td>startup_config</td> <td> </td> <td>string</td> <td>path to the IOS startup configuration file</td> </tr>
|
||||||
<tr><td>startup_config_base64</td> <td> </td> <td>string</td> <td>startup configuration base64 encoded</td> </tr>
|
<tr><td>startup_config_base64</td> <td> </td> <td>string</td> <td>startup configuration base64 encoded</td> </tr>
|
||||||
|
<tr><td>startup_config_content</td> <td> </td> <td>string</td> <td>Content of IOS startup configuration file</td> </tr>
|
||||||
<tr><td>system_id</td> <td> </td> <td>string</td> <td>system ID</td> </tr>
|
<tr><td>system_id</td> <td> </td> <td>string</td> <td>system ID</td> </tr>
|
||||||
<tr><td>wic0</td> <td> </td> <td></td> <td>Network module WIC slot 0</td> </tr>
|
<tr><td>wic0</td> <td> </td> <td></td> <td>Network module WIC slot 0</td> </tr>
|
||||||
<tr><td>wic1</td> <td> </td> <td></td> <td>Network module WIC slot 0</td> </tr>
|
<tr><td>wic1</td> <td> </td> <td></td> <td>Network module WIC slot 0</td> </tr>
|
@ -10,9 +10,9 @@ Add a NIO to a Dynamips VM instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **adapter_number**: Adapter where the nio should be added
|
- **adapter_number**: Adapter where the nio should be added
|
||||||
- **port_number**: Port on the adapter
|
- **port_number**: Port on the adapter
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
@ -28,9 +28,9 @@ Remove a NIO from a Dynamips VM instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **adapter_number**: Adapter from where the nio should be removed
|
- **adapter_number**: Adapter from where the nio should be removed
|
||||||
- **port_number**: Port on the adapter
|
- **port_number**: Port on the adapter
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
@ -10,9 +10,9 @@ Start a packet capture on a Dynamips VM instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **adapter_number**: Adapter to start a packet capture
|
- **adapter_number**: Adapter to start a packet capture
|
||||||
- **port_number**: Port on the adapter
|
- **port_number**: Port on the adapter
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
@ -10,9 +10,9 @@ Stop a packet capture on a Dynamips VM instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **adapter_number**: Adapter to stop a packet capture
|
- **adapter_number**: Adapter to stop a packet capture
|
||||||
- **port_number**: Port on the adapter (always 0)
|
- **port_number**: Port on the adapter (always 0)
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
@ -0,0 +1,15 @@
|
|||||||
|
/v1/projects/{project_id}/dynamips/vms/{vm_id}/auto_idlepc
|
||||||
|
----------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
.. contents::
|
||||||
|
|
||||||
|
GET /v1/projects/**{project_id}**/dynamips/vms/**{vm_id}**/auto_idlepc
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
Retrieve the idlepc proposals
|
||||||
|
|
||||||
|
Response status codes
|
||||||
|
**********************
|
||||||
|
- **200**: Best Idle-pc value found
|
||||||
|
- **400**: Invalid request
|
||||||
|
- **404**: Instance doesn't exist
|
||||||
|
|
@ -0,0 +1,25 @@
|
|||||||
|
/v1/projects/{project_id}/dynamips/vms/{vm_id}/configs
|
||||||
|
----------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
.. contents::
|
||||||
|
|
||||||
|
GET /v1/projects/**{project_id}**/dynamips/vms/**{vm_id}**/configs
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
Retrieve the startup and private configs content
|
||||||
|
|
||||||
|
Response status codes
|
||||||
|
**********************
|
||||||
|
- **200**: Configs retrieved
|
||||||
|
- **400**: Invalid request
|
||||||
|
- **404**: Instance doesn't exist
|
||||||
|
|
||||||
|
Output
|
||||||
|
*******
|
||||||
|
.. raw:: html
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
|
||||||
|
<tr><td>private_config_content</td> <td>✔</td> <td>['string', 'null']</td> <td>Content of the private configuration file</td> </tr>
|
||||||
|
<tr><td>startup_config_content</td> <td>✔</td> <td>['string', 'null']</td> <td>Content of the startup configuration file</td> </tr>
|
||||||
|
</table>
|
||||||
|
|
@ -0,0 +1,15 @@
|
|||||||
|
/v1/projects/{project_id}/dynamips/vms/{vm_id}/idlepc_proposals
|
||||||
|
----------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
.. contents::
|
||||||
|
|
||||||
|
GET /v1/projects/**{project_id}**/dynamips/vms/**{vm_id}**/idlepc_proposals
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
Retrieve the idlepc proposals
|
||||||
|
|
||||||
|
Response status codes
|
||||||
|
**********************
|
||||||
|
- **200**: Idle-PCs retrieved
|
||||||
|
- **400**: Invalid request
|
||||||
|
- **404**: Instance doesn't exist
|
||||||
|
|
@ -5,4 +5,4 @@ Iou
|
|||||||
:glob:
|
:glob:
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
iou/*
|
api.iou/*
|
@ -10,9 +10,9 @@ Add a NIO to a IOU instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **adapter_number**: Network adapter where the nio is located
|
- **adapter_number**: Network adapter where the nio is located
|
||||||
- **port_number**: Port where the nio should be added
|
- **port_number**: Port where the nio should be added
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
@ -28,9 +28,9 @@ Remove a NIO from a IOU instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **adapter_number**: Network adapter where the nio is located
|
- **adapter_number**: Network adapter where the nio is located
|
||||||
- **port_number**: Port from where the nio should be removed
|
- **port_number**: Port from where the nio should be removed
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
@ -10,9 +10,9 @@ Start a packet capture on a IOU VM instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **adapter_number**: Adapter to start a packet capture
|
- **adapter_number**: Adapter to start a packet capture
|
||||||
- **port_number**: Port on the adapter
|
- **port_number**: Port on the adapter
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
@ -10,9 +10,9 @@ Stop a packet capture on a IOU VM instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **adapter_number**: Adapter to stop a packet capture
|
- **adapter_number**: Adapter to stop a packet capture
|
||||||
- **port_number**: Port on the adapter (always 0)
|
- **port_number**: Port on the adapter (always 0)
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
@ -20,6 +20,5 @@ Output
|
|||||||
<table>
|
<table>
|
||||||
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
|
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
|
||||||
<tr><td>content</td> <td>✔</td> <td>['string', 'null']</td> <td>Content of the initial configuration file</td> </tr>
|
<tr><td>content</td> <td>✔</td> <td>['string', 'null']</td> <td>Content of the initial configuration file</td> </tr>
|
||||||
<tr><td>path</td> <td>✔</td> <td>['string', 'null']</td> <td>Relative path on the server of the initial configuration file</td> </tr>
|
|
||||||
</table>
|
</table>
|
||||||
|
|
@ -5,4 +5,4 @@ Network
|
|||||||
:glob:
|
:glob:
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
network/*
|
api.network/*
|
@ -5,4 +5,4 @@ Project
|
|||||||
:glob:
|
:glob:
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
project/*
|
api.project/*
|
@ -5,4 +5,4 @@ Qemu
|
|||||||
:glob:
|
:glob:
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
qemu/*
|
api.qemu/*
|
@ -10,9 +10,9 @@ Add a NIO to a Qemu.instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **adapter_number**: Network adapter where the nio is located
|
- **adapter_number**: Network adapter where the nio is located
|
||||||
- **port_number**: Port where the nio should be added
|
- **port_number**: Port where the nio should be added
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
@ -28,9 +28,9 @@ Remove a NIO from a Qemu.instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **adapter_number**: Network adapter where the nio is located
|
- **adapter_number**: Network adapter where the nio is located
|
||||||
- **port_number**: Port from where the nio should be removed
|
- **port_number**: Port from where the nio should be removed
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
20
docs/api/api.qemu/v1projectsprojectidqemuvmsvmidresume.rst
Normal file
20
docs/api/api.qemu/v1projectsprojectidqemuvmsvmidresume.rst
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/v1/projects/{project_id}/qemu/vms/{vm_id}/resume
|
||||||
|
----------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
.. contents::
|
||||||
|
|
||||||
|
POST /v1/projects/**{project_id}**/qemu/vms/**{vm_id}**/resume
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
Resume a Qemu.instance
|
||||||
|
|
||||||
|
Parameters
|
||||||
|
**********
|
||||||
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
|
Response status codes
|
||||||
|
**********************
|
||||||
|
- **400**: Invalid request
|
||||||
|
- **404**: Instance doesn't exist
|
||||||
|
- **204**: Instance resumed
|
||||||
|
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
POST /v1/projects/**{project_id}**/qemu/vms/**{vm_id}**/suspend
|
POST /v1/projects/**{project_id}**/qemu/vms/**{vm_id}**/suspend
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Reload a Qemu.instance
|
Suspend a Qemu.instance
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
15
docs/api/api.qemu/v1qemubinaries.rst
Normal file
15
docs/api/api.qemu/v1qemubinaries.rst
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/v1/qemu/binaries
|
||||||
|
----------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
.. contents::
|
||||||
|
|
||||||
|
GET /v1/qemu/binaries
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
Get a list of available Qemu binaries
|
||||||
|
|
||||||
|
Response status codes
|
||||||
|
**********************
|
||||||
|
- **200**: Success
|
||||||
|
- **400**: Invalid request
|
||||||
|
- **404**: Instance doesn't exist
|
||||||
|
|
@ -5,4 +5,4 @@ Version
|
|||||||
:glob:
|
:glob:
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
version/*
|
api.version/*
|
@ -5,4 +5,4 @@ Virtualbox
|
|||||||
:glob:
|
:glob:
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
virtualbox/*
|
api.virtualbox/*
|
@ -10,9 +10,9 @@ Add a NIO to a VirtualBox VM instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **adapter_number**: Adapter where the nio should be added
|
- **adapter_number**: Adapter where the nio should be added
|
||||||
- **port_number**: Port on the adapter (always 0)
|
- **port_number**: Port on the adapter (always 0)
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
@ -28,9 +28,9 @@ Remove a NIO from a VirtualBox VM instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **adapter_number**: Adapter from where the nio should be removed
|
- **adapter_number**: Adapter from where the nio should be removed
|
||||||
- **port_number**: Port on the adapter (always)
|
- **port_number**: Port on the adapter (always)
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
@ -10,9 +10,9 @@ Start a packet capture on a VirtualBox VM instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **adapter_number**: Adapter to start a packet capture
|
- **adapter_number**: Adapter to start a packet capture
|
||||||
- **port_number**: Port on the adapter (always 0)
|
- **port_number**: Port on the adapter (always 0)
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
@ -10,9 +10,9 @@ Stop a packet capture on a VirtualBox VM instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **adapter_number**: Adapter to stop a packet capture
|
- **adapter_number**: Adapter to stop a packet capture
|
||||||
- **port_number**: Port on the adapter (always 0)
|
- **port_number**: Port on the adapter (always 0)
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
@ -5,4 +5,4 @@ Vpcs
|
|||||||
:glob:
|
:glob:
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
vpcs/*
|
api.vpcs/*
|
@ -10,9 +10,9 @@ Add a NIO to a VPCS instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **adapter_number**: Network adapter where the nio is located
|
- **adapter_number**: Network adapter where the nio is located
|
||||||
- **port_number**: Port where the nio should be added
|
- **port_number**: Port where the nio should be added
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
@ -28,9 +28,9 @@ Remove a NIO from a VPCS instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **adapter_number**: Network adapter where the nio is located
|
- **adapter_number**: Network adapter where the nio is located
|
||||||
- **port_number**: Port from where the nio should be removed
|
- **port_number**: Port from where the nio should be removed
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
8
docs/api/upload.rst
Normal file
8
docs/api/upload.rst
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
Upload
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:glob:
|
||||||
|
:maxdepth: 2
|
||||||
|
|
||||||
|
upload/*
|
22
docs/api/upload/upload.rst
Normal file
22
docs/api/upload/upload.rst
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/upload
|
||||||
|
----------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
.. contents::
|
||||||
|
|
||||||
|
GET /upload
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
Manage upload of GNS3 images
|
||||||
|
|
||||||
|
Response status codes
|
||||||
|
**********************
|
||||||
|
- **200**: OK
|
||||||
|
|
||||||
|
|
||||||
|
POST /upload
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
Manage upload of GNS3 images
|
||||||
|
|
||||||
|
Response status codes
|
||||||
|
**********************
|
||||||
|
- **200**: OK
|
||||||
|
|
@ -1,6 +1,9 @@
|
|||||||
Welcome to API documentation!
|
Welcome to API documentation!
|
||||||
======================================
|
======================================
|
||||||
|
|
||||||
|
.. WARNING::
|
||||||
|
The API is not stable, feel free to send comment on GNS3 Jungle
|
||||||
|
https://community.gns3.com/
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
general
|
general
|
||||||
|
@ -77,7 +77,7 @@ class Documentation(object):
|
|||||||
os.makedirs(directory, exist_ok=True)
|
os.makedirs(directory, exist_ok=True)
|
||||||
|
|
||||||
with open("docs/api/{}.rst".format(handler_name), "w+") as f:
|
with open("docs/api/{}.rst".format(handler_name), "w+") as f:
|
||||||
f.write(handler_name.replace("_", " ", ).capitalize())
|
f.write(handler_name.replace("api.", "").replace("_", " ", ).capitalize())
|
||||||
f.write("\n---------------------\n\n")
|
f.write("\n---------------------\n\n")
|
||||||
f.write(".. toctree::\n :glob:\n :maxdepth: 2\n\n {}/*\n".format(handler_name))
|
f.write(".. toctree::\n :glob:\n :maxdepth: 2\n\n {}/*\n".format(handler_name))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user