Returned result, Example, Returned result example – HP Intelligent Management Center Licenses User Manual

Page 240

Advertising
background image

Returned Result

Status codes

200 (OK): Success.

Message header

When the total parameter takes true, the Total attribute returns the total number of records that
meet the requirements. The message body is empty.

HTTP/1.1 200 OK
Total: 3

Message body

<list>
<macAccessBind>
<id>3</id>
<deviceId>0</deviceId>
<deviceLabel/>
<deviceIp/>
<ifDesc/>
<terminalMac>10:20:30:40:50:60</terminalMac>
<terminalName>yourTerminal</terminalName>
<terminalIp/>
<bindType>1</bindType>
<link href="http://localhost:8080/imcrs/res/access/macAccessBind/3" op="GET" rel="self"/>
</macAccessBind>
...
</list>

Elements

For meanings of the fields in the message body, see

Query Terminal Access Binding

.”

Example

Query and list terminal access bindings.

Request

GET http://localhost:8080/imcrs/res/access/macAccessBind
accept: application/xml
...

Response

HTTP/1.1 200 OK
Content-Type: application/xml
...

<list>
<macAccessBind>
<id>3</id>
<deviceId>0</deviceId>
<deviceLabel/>
<deviceIp/>
<ifDesc/>
<terminalMac>10:20:30:40:50:60</terminalMac>
<terminalName>yourTerminal</terminalName>
<terminalIp/>
<bindType>1</bindType>
<link href="http://localhost:8080/imcrs/res/access/macAccessBind/3" op="GET" rel="self"/>
</macAccessBind>
...
</list>

240 Terminal Access Management

Advertising