1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-01 04:38:12 +00:00
gns3-server/docs/api/v1/iou/projectsprojectidiouvmsvmidconfigs.rst

32 lines
1.3 KiB
ReStructuredText
Raw Normal View History

2015-06-10 12:35:53 +00:00
/v1/projects/{project_id}/iou/vms/{vm_id}/configs
2015-04-07 14:09:27 +00:00
----------------------------------------------------------------------------------------------------------------------
.. contents::
2015-06-10 12:35:53 +00:00
GET /v1/projects/**{project_id}**/iou/vms/**{vm_id}**/configs
2015-04-07 14:09:27 +00:00
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2015-06-10 12:35:53 +00:00
Retrieve the startup and private configs content
2015-04-07 14:09:27 +00:00
Response status codes
**********************
2015-06-10 12:35:53 +00:00
- **200**: Configs retrieved
2015-04-07 14:09:27 +00:00
- **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>
2015-06-10 12:35:53 +00:00
<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>
2015-04-07 14:09:27 +00:00
</table>
Sample session
***************
2015-06-10 12:35:53 +00:00
.. literalinclude:: ../../examples/get_projectsprojectidiouvmsvmidconfigs.txt
2015-04-07 14:09:27 +00:00