Add vlan interface, Interface uri, Access method – HP Intelligent Management Center Licenses User Manual
Page 401: Returned result, Interface uri access method returned result
Add VLAN Interface
Add a VLAN interface on the device.
Interface URI
/vlan/vlanif
Access Method
HTTP
POST
Message body
POST http://imc_host:8080/imcrs/vlan/vlanif?devId=3
accept: application/xml
...
Parameters
VLAN interface sub-elements
VLAN ID, which uniquely identifies a VLAN.
vlanId
Integer type. Required. No default value.
Primary IP address or not.
isPrimary
Boolean type. Optional. The default value is true.
Whether or not the IP address is assigned through DHCP. If the value takes true, then the ipAddress
and ipMask parameters are empty.
enableDHCP
Boolean type. Optional. The default value is false.
IP address.
ipAddress
String type. Optional. If the enableDHCP parameter is false then neither ipAddress or ipMask can
be empty.
Network mask of an IP address.
ipMask
String type. Optional. If the enableDHCP parameter is false, then neither ipAddress nor ipMask can
be empty.
Returned Result
Status codes
•
201 (Created): Success.
•
409 (Conflict): Failure. See “
.”
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://imc_host:port/imcrs/vlan/vlanif?devId=3
Add VLAN Interface 401