INC Platform - VLAN Manager

Add VLAN

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.

Interface URI

/vlan

Access Method

HTTP
POST
Message body
<vlan> 
<vlanId>1111</vlanId>
<vlanName>VLAN 1111</vlanName>
</vlan>
Parameters
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.

Returned Result

Status codes
  • 201 (Created): Success.
  • 409 (Conflict): Failure. See Error Codes.
Message header

If the operation succeeds, the Location field gives the URI of the new resource. The message body is empty.
HTTP/1.1 201 Created
Location: http://localhost:8080/imcrs/vlan?devId=13

Example

Add a VLAN whose ID is 1111 and name VLAN1111 on the device whose ID is 13.

Request
POST http://host:8080/imcrs/vlan?devId=13
accept: application/xml
...
<vlan> 
<vlanId>1111</vlanId>
<vlanName>VLAN 1111</vlanName>
</vlan>
Response
HTTP/1.1 201 Created
Location: http://localhost:8080/imcrs/vlan?devId=13