/vpcs
---------------------------------------------
.. contents::
POST /vpcs
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Create a new VPCS instance
Response status codes
**********************
- **400**: Invalid project UUID
- **201**: VPCS instance created
- **409**: Conflict
Input
*******
.. raw:: html
| Name | Mandatory | Type | Description |
| console | | ['integer', 'null'] | console TCP port |
| name | ✔ | string | VPCS device name |
| project_uuid | ✔ | string | Project UUID |
| script_file | | ['string', 'null'] | VPCS startup script |
| startup_script | | ['string', 'null'] | Content of the VPCS startup script |
| uuid | | string | VPCS device UUID |
| vpcs_id | | integer | VPCS device instance ID (for project created before GNS3 1.3) |
Output
*******
.. raw:: html
| Name | Mandatory | Type | Description |
| console | ✔ | integer | console TCP port |
| name | ✔ | string | VPCS device name |
| project_uuid | ✔ | string | Project UUID |
| script_file | | ['string', 'null'] | VPCS startup script |
| startup_script | | ['string', 'null'] | Content of the VPCS startup script |
| uuid | ✔ | string | VPCS device UUID |
Sample session
***************
.. literalinclude:: examples/post_vpcs.txt