mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-30 17:46:59 +00:00
4.1 KiB
4.1 KiB
/v2/compute/projects/{project_id}/ethernet_switch/nodes
POST /v2/compute/projects/{project_id}/ethernet_switch/nodes
Create a new Ethernet switch instance
Parameters
- project_id: Project UUID
Response status codes
- 201: Instance created
- 400: Invalid request
- 409: Conflict
Input
Types
EthernetSwitchPort
Ethernet port
Name | Mandatory | Type | Description |
---|---|---|---|
ethertype | enum | Possible values: null, 0x8100, 0x88A8, 0x9100, 0x9200 | |
name | ✔ | string | Port name |
port_number | ✔ | integer | Port number |
type | ✔ | enum | Possible values: access, dot1q, qinq |
vlan | integer | VLAN number |
Body
Name | Mandatory | Type | Description |
---|---|---|---|
console | integer | Console TCP port | |
console_type | enum | Possible values: telnet | |
name | ✔ | string | Ethernet switch name |
node_id | Node UUID | ||
ports_mapping | array |
Output
Name | Mandatory | Type | Description |
---|---|---|---|
console | integer | Console TCP port | |
console_type | enum | Possible values: telnet | |
name | ✔ | string | Ethernet switch name |
node_id | ✔ | string | Node UUID |
ports_mapping | array | ||
project_id | ✔ | string | Project UUID |
status | enum | Possible values: started, stopped, suspended |