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

Page 47

Advertising
background image

operatorGroup sub-elements

Long integer type. This element is required when you add or modify an operator group.

List of operator privileges. This element is optional when you add or modify an operator group.

operatePrivilegeList

Operator privilege.

operatePrivilege

The id suboption represents the operator privilege ID. String type. Required.

The desc suboption represents the privilege description. String type. Optional.

The level suboption represents the privilege level. The value is —1 for the function privilege level
and is 1 for the component privilege level (privilege named by the component ID). Integer type.
Required.

Role link.

role

Function link. This element is not needed when you add or modify an operator group and is returned
in the response message for queries.

Operator privilege link.

privileges

Function link. This element is not needed when you add or modify an operator group and is returned
in the response message for queries.

Example

Query information about the operator group with ID 1.

Request

GET http://imc_host:8080/imcrs/plat/operatorGroup/1
accept: application/xml
. . .

Response

HTTP/1.1 200 OK
Content-Type: application/xml
. . .
<operatorGroup>
<id>1</id>
<groupName>Administrator group</groupName>
<groupDesc>The group of operators that have the administrative rights.</groupDesc>
<roleDesc>Administrator</roleDesc>
<role>http://localhost:8080/imcrs/plat/role/1</role>
<privileges>http://localhost:8080/imcrs/plat/operatePrivilege?groupId=1</privileges>
</operatorGroup>

Query Operator Group Details

47

Advertising