1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-28 01:38:08 +00:00
gns3-server/docs/api/vpcsuuidportsportidnio.rst

49 lines
1.0 KiB
ReStructuredText
Raw Normal View History

2015-01-20 14:21:13 +00:00
/vpcs/{uuid}/ports/{port_id}/nio
---------------------------------------------
.. contents::
POST /vpcs/**{uuid}**/ports/**{port_id}**/nio
2015-01-20 14:21:13 +00:00
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Add a NIO to a VPCS
Parameters
**********
- **uuid**: VPCS instance UUID
- **port_id**: Id of the port where the nio should be add
2015-01-20 14:21:13 +00:00
Response status codes
**********************
- **400**: Invalid VPCS instance UUID
- **201**: NIO created
- **404**: VPCS instance doesn't exist
Sample session
***************
.. literalinclude:: examples/post_vpcsuuidportsportidnio.txt
DELETE /vpcs/**{uuid}**/ports/**{port_id}**/nio
2015-01-20 14:21:13 +00:00
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Remove a NIO from a VPCS
Parameters
**********
- **uuid**: VPCS instance UUID
- **port_id**: ID of the port where the nio should be removed
2015-01-20 14:21:13 +00:00
Response status codes
**********************
- **200**: NIO deleted
- **400**: Invalid VPCS instance UUID
- **404**: VPCS instance doesn't exist
Sample session
***************
.. literalinclude:: examples/delete_vpcsuuidportsportidnio.txt