Example 1, Example 2, Example 1 example 2 – HP Intelligent Management Center Licenses User Manual

Page 222

Advertising
background image

Example 1

Add an IP segment ranging from 10.153.89.21 to 10.153.89.30 and grant rights to the IP segment
to the default operator groups.

Request

POST http://localhost:8080/imcrs/res/access/assignedIpScope
accept: application/xml
Content-Type: application/xml; charset=UTF-8
...
<assignedIpScope>
<startIp>10.153.89.21</startIp>
<endIp>10.153.89.30</endIp>
<name>21to30</name>
<description>10.153.89.21 to 10.153.89.30</description>
</assignedIpScope>

Response

HTTP/1.1 201 Created
Location: http://localhost:8080/imcrs/res/access/assignedIpScope/7

Example 2

Add an IP segment ranging from 10.153.89.60 to 10.153.89.80, and grant rights to the IP
segment to operator groups with IDs 1, 2, and 4.

Request

POST http://localhost:8080/imcrs/res/access/assignedIpScope
accept: application/xml
Content-Type: application/xml; charset=UTF-8
...
<assignedIpScope>
<startIp>10.153.89.60</startIp>
<endIp>10.153.89.80</endIp>
<name>60to80</name>
<description>10.153.89.60 to 10.153.89.80</description>
<operatorGroupId>1</operatorGroupId>
<operatorGroupId>2</operatorGroupId>
<operatorGroupId>4</operatorGroupId>
</assignedIpScope>

Response

HTTP/1.1 201 Created
Location: http://localhost:8080/imcrs/res/access/assignedIpScope/12

222 Terminal Access Management

Advertising