Add a VLAN on the device. The Add VLAN function was enhanced to allow for the automatic adding of VLANs to Hybrid or Trunk ports on the initial creation of the VLAN.
/vlan
<vlan>
<vlanId>1111</vlanId>
<vlanName>VLAN 1111</vlanName>
</vlan>
VLAN sub-elements | |
---|---|
devId |
Device type ID.
Integer type. Required. No default value. |
vlanId |
VLAN ID.
Integer type. Required. No default value. |
vlanName |
VLAN name.
String type. Required. No default value. |
HTTP/1.1 201 Created
Location: http://localhost:8080/imcrs/vlan?devId=13
Add a VLAN whose ID is 1111 and name VLAN1111 on the device whose ID is 13.
POST http://host:8080/imcrs/vlan?devId=13 accept: application/xml ... <vlan>
<vlanId>1111</vlanId>
<vlanName>VLAN 1111</vlanName>
</vlan>
HTTP/1.1 201 Created
Location: http://localhost:8080/imcrs/vlan?devId=13