GET /privilegeCategories/<ID>

Use this GET method to retrieve information about a specific privilege category.

Note: This API requires Lenovo XClarity Administrator v2.4.0 or later.

Authentication

Authentication with user name and password is required.

Request URL

GET https://<management_server_IP>/privilegeCategories/<ID>

where <ID> is the ID of the category to be retrieved. To obtain the category IDs, use GET /privilegeCategories.

Query parameters

None

Request body

None

Response codes

Code Description
200 OK
400 Bad request
401 Unauthorized
403 Forbidden
404 Not found
409 Conflict
500 Internal server error

Response body

Attributes Type Description
response Object Information about each privilege category
  description String Category description
  id String Category ID
  privileges Array of objects Information about the privileges that are assigned to the category
    description String Privilege description
    id String Privilege ID
    name String Privilege name
result String Result of the request. This can be one of the following values.
  • success. The request completed successfully.
  • failed. The request failed. A descriptive error message was returned.
  • warning. The request completed with a warning. A descriptive error message was returned.
messages Array of objects Information about one or more messages
  explanation String Additional information to clarify the reason for the message
  id String Message identifier of a returned message
  recovery Array of objects Recovery information
    text String User actions that can be taken to recover from the event
    URL String Link to the help system for more information, if available
  text String Message text associated with the message identifier

Response example

{
   "response": {
      "description": "Security",
      "id": 504,
      "privileges": [{
         "description": "Regenerate server certificate",
         "id": "128",
         "name": "lxc-sec-regenerate-server-certificate"
      },
      ...,
      {
         "description": "Upload server certificate",
         "id": "127",
         "name": "lxc-sec-upload-server-certificate"
      }]
   },
   "result": "success",
   "messages": [{
      "explanation": "",
      "id": "FQXHMSE0001I",
      "recovery": {
         "text": "Information only. No action is required.",
         "URL": ""
      },
      "text": "The request completed successfully."
   }]
}