Example, Request, Response – HP Intelligent Management Center Licenses User Manual

Page 121

Advertising
background image

deviceLink sub-elements

Long integer type.

Link type.

type

Integer type.

Link left node ID.

leftSymbolId

Long integer type.

Link left interface description.

leftIfDesc

String type.

Link right node ID.

rightSymbolId

Long integer type.

Link right interface description.

rightIfDesc

String type

Link state. 0: Unknown. 1: Normal. 2: Down. 3: Urgent. 4: Important. 5: Minor. 6: Warning. 7:
Event. 8: Virtual.

status

Integer type.

Link bandwidth.

bandWidth

String type.

Link left node device link.

leftDevice

String type.

Link right node device link.

rightDevice

String type.

Example

Query link with the topology ID 1914 and link ID 556.

Request

GET http://imc_host:8080/imcrs/plat/res/link/556?topoId=1914
accept: application/xml
...

Response

HTTP/1.1 200 OK
Content-Type: application/xml
...
<deviceLink>
<id>556</id>
<type>0</type>
<leftSymbolId>1920</leftSymbolId>
<leftIfDesc>GigabitEthernet4/0/19</leftIfDesc>
<rightSymbolId>1918</rightSymbolId>
<rightIfDesc>Ethernet0/1</rightIfDesc>
<status>1</status>
<bandWidth>100000000</bandWidth>
<leftDevice>http://localhost:8080/imcrs/plat/res/device/403</leftDevice>
<rightDevice>http://localhost:8080/imcrs/plat/res/device/400</rightDevice>
</deviceLink>

Query Link Information

121

Advertising