Example, Message body, Elements – HP Intelligent Management Center Licenses User Manual

Page 400: Request, Response

Advertising
background image

Message body

<list>
<vlanIf>
<vlanId>2</vlanId>
<isPrimary>true</isPrimary>
<enableDHCP>false</enableDHCP>
<ipAddress>12.4.3.2</ipAddress>
<ipMask>255.255.255.224</ipMask>
</vlanIf>
</list>

Elements

VLAN interface sub-elements

VLAN ID, which uniquely identifies a VLAN.

vlanId

Integer type.

Primary IP address or not.

isPrimary

Boolean type.

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.

IP address.

ipAddress

String type.

Network mask of an IP address.

ipMask

String type.

Example

Query and list the first five VLAN interfaces for the VLAN with ID 2 on the device whose ID is 13.

Request

GET http://localhost:8080/imcrs/vlan/vlanif/2?devId=13&start=0&size=5
accept: application/xml
...

Response

HTTP/1.1 200 OK
Content-Type: application/xml
...
<list>
<vlanIf>
<vlanId>2</vlanId>
<isPrimary>true</isPrimary>
<enableDHCP>false</enableDHCP>
<ipAddress>12.4.3.2</ipAddress>
<ipMask>255.255.255.224</ipMask>
</vlanIf>
</list>

400 Network Service Management

Advertising