mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-23 06:32:26 +00:00
3.0 KiB
3.0 KiB
/vpcs
POST /vpcs
Create a new VPCS instance
Response status codes
- 400: Invalid project UUID
- 201: VPCS instance created
- 409: Conflict
Input
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
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
examples/post_vpcs.txt