mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-11 23:42:41 +00:00
4.3 KiB
4.3 KiB
/v2/projects/{project_id}/nodes
POST /v2/projects/{project_id}/nodes
Create a new node instance
Parameters
- project_id: UUID for the project
Response status codes
- 400: Invalid request
- 201: Instance created
Input
Name | Mandatory | Type | Description |
---|---|---|---|
compute_id | string | Compute identifier | |
console | ['integer', 'null'] | Console TCP port | |
console_type | enum | Possible values: serial, vnc, telnet | |
name | string | Node name | |
node_id | string | Node identifier | |
node_type | enum | Possible values: docker, dynamips, vpcs, virtualbox, vmware, iou, qemu | |
project_id | string | Project identifier | |
properties | object | Properties specific to an emulator |
Output
Name | Mandatory | Type | Description |
---|---|---|---|
compute_id | string | Compute identifier | |
console | ['integer', 'null'] | Console TCP port | |
console_type | enum | Possible values: serial, vnc, telnet | |
name | string | Node name | |
node_id | string | Node identifier | |
node_type | enum | Possible values: docker, dynamips, vpcs, virtualbox, vmware, iou, qemu | |
project_id | string | Project identifier | |
properties | object | Properties specific to an emulator |
Sample session
../../../examples/controller_post_projectsprojectidnodes.txt
GET /v2/projects/{project_id}/nodes
List nodes of a project
Parameters
- project_id: UUID for the project
Response status codes
- 200: List of nodes
Sample session
../../../examples/controller_get_projectsprojectidnodes.txt