/v2/compute/projects/{project_id}/vpcs/nodes
------------------------------------------------------------------------------------------------------------------------------------------
.. contents::
POST /v2/compute/projects/**{project_id}**/vpcs/nodes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Create a new VPCS instance
Parameters
**********
- **project_id**: Project UUID
Response status codes
**********************
- **400**: Invalid request
- **201**: Instance created
- **409**: Conflict
Input
*******
.. raw:: html
Name | Mandatory | Type | Description |
console | | ['integer', 'null'] | Console TCP port |
console_type | | enum | Possible values: telnet |
name | ✔ | string | VPCS VM name |
node_id | | | Node UUID |
startup_script | | ['string', 'null'] | Content of the VPCS startup script |
startup_script_path | | ['string', 'null'] | Path of the VPCS startup script relative to project directory (IGNORED) |
Output
*******
.. raw:: html
Name | Mandatory | Type | Description |
command_line | ✔ | string | Last command line used by GNS3 to start QEMU |
console | ✔ | integer | Console TCP port |
console_type | ✔ | enum | Possible values: telnet |
name | ✔ | string | VPCS VM name |
node_directory | | string | |
node_id | ✔ | string | Node UUID |
project_id | ✔ | string | Project UUID |
startup_script | | ['string', 'null'] | Content of the VPCS startup script |
startup_script_path | ✔ | ['string', 'null'] | Path of the VPCS startup script relative to project directory |
status | ✔ | enum | Possible values: started, stopped, suspended |
Sample session
***************
.. literalinclude:: ../../../examples/compute_post_projectsprojectidvpcsnodes.txt