beautypg.com

Add port to vlan, Interface uri, Access method – HP Intelligent Management Center Licenses User Manual

Page 375: Returned result, Interface uri access method returned result

background image

Add Port to VLAN

Add a port to a VLAN.

Interface URI

/vlan/{vlanId}

Access Method

HTTP

POST

Message body

POST http://imc_host:8080/imcrs/vlan/777?devId=33&ifIndex=1538
accept: application/xml
...

Parameters

VLAN port sub-elements

Device type ID.

devId

Integer type. Required. No default value.

VLAN ID

vlanId

Integer type. Required. No default value.

VLAN name.

vlanName

String type. Required. No default value.

Returned Result

Status codes

201 (Created): Success.

409 (Conflict): Failure. See

Error Codes

.”

If the operation succeeds, the Location field gives the URI of the VLAN resource where the port is
located. The message body is empty.

HTTP/1.1 201 Created
http://localhost:8080/imcrs/vlan/777?devId=33

Add Port to VLAN 375