2015-01-20 16:21:13 +02:00
|
|
|
/vpcs/{uuid}/ports/{port_id}/nio
|
|
|
|
---------------------------------------------
|
|
|
|
|
|
|
|
.. contents::
|
|
|
|
|
2015-01-20 16:31:27 +02:00
|
|
|
POST /vpcs/**{uuid}**/ports/**{port_id}**/nio
|
2015-01-22 11:55:11 +02:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2015-01-20 16:21:13 +02:00
|
|
|
Add a NIO to a VPCS
|
|
|
|
|
|
|
|
Parameters
|
|
|
|
**********
|
2015-01-20 16:31:27 +02:00
|
|
|
- **port_id**: Id of the port where the nio should be add
|
2015-01-21 23:33:41 +02:00
|
|
|
- **uuid**: VPCS instance UUID
|
2015-01-20 16:21:13 +02: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
|
|
|
|
|
|
|
|
|
2015-01-20 16:31:27 +02:00
|
|
|
DELETE /vpcs/**{uuid}**/ports/**{port_id}**/nio
|
2015-01-22 11:55:11 +02:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2015-01-20 16:21:13 +02:00
|
|
|
Remove a NIO from a VPCS
|
|
|
|
|
|
|
|
Parameters
|
|
|
|
**********
|
2015-01-20 16:31:27 +02:00
|
|
|
- **port_id**: ID of the port where the nio should be removed
|
2015-01-21 23:33:41 +02:00
|
|
|
- **uuid**: VPCS instance UUID
|
2015-01-20 16:21:13 +02:00
|
|
|
|
|
|
|
Response status codes
|
|
|
|
**********************
|
|
|
|
- **400**: Invalid VPCS instance UUID
|
|
|
|
- **404**: VPCS instance doesn't exist
|
2015-01-21 23:33:41 +02:00
|
|
|
- **204**: NIO deleted
|
2015-01-20 16:21:13 +02:00
|
|
|
|
|
|
|
Sample session
|
|
|
|
***************
|
|
|
|
|
|
|
|
|
|
|
|
.. literalinclude:: examples/delete_vpcsuuidportsportidnio.txt
|
|
|
|
|