Modify trunk port, Interface uri, Access method – HP Intelligent Management Center Licenses User Manual

Page 395: Returned result, Example

Advertising
background image

Modify Trunk Port

Modify the parameters of a trunk port on the device.

Interface URI

/vlan/trunk

Access Method

HTTP

PUT

Message body

PUT http://imc_host:8080/imcrs/vlan/trunk?devId=33
accept: application/xml
...
<trunkIf allowedVlans="3,7" ifIndex="2423" pvid="1"/>

Elements

Trunk port sub-elements

Device type ID.

devId

Integer type. Required. No default value.

Port index, which uniquely identifies a port.

ifIndex

Integer type. Required. No default value.

PVID of the trunk port.

pvid

Integer type. Required. No default value.

Allowed VLAN.

allowedVlans

String type. Optional. No default value.

Returned Result

Status codes

204 (No Content): Success.

409 (Conflict): Failure. See

Error Codes

.”

Example

Modify a trunk port on the device whose ID is 33. The new parameters are as follows: ifIndex=2434,
pvid=1, allowedVlan=3,7.

Request

PUT http://imc_host:8080/imcrs/vlan/trunk?devId=33
accept: application/xml
...
<trunkIf allowedVlans="3,7" ifIndex="2423" pvid="1"/>

Response

None

Modify Trunk Port 395

Advertising