Skip to main content

GET /roleGroups/{name}

Use this method to return information about a specific role group.

Authentication

Authentication with username and password is required.

Request URL

GET https://{management_server_IP}/roleGroups/{name}

where <name} is the name of the role group. To obtain role group name, use GET /roleGroups.

Query parameters

None

Response codes

CodeDescriptionComments
200OKThe request completed successfully.
400Bad RequestA query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body.
500Internal Server ErrorAn internal error occurred. A descriptive error message is returned in the response body.

Response body

AttributesTypeDescription
responseObjectEach array element represents a role group
 descriptionStringDescription for the role group
 idStringSystem-assigned identifier for the role group
 nameStringName of the role group
 reservedBooleanIndicates if the role group is reserved and cannot be modified. This can be one of the following values.
  • true. The role group is reserved.
  • false. The role group is not reserved.
 rolesArray of stringsList of the roles that are included in the role group. To obtain a list of all predefined and custom role names, use the GET /roles method.

For information about the predefined and reserved roles, see Creating a custom role.

 usersArrayList of all user IDs that are members of the role group
resultStringResult of the request. This can be one of the following values.
  • success. The request completed successfully.
  • failure. The request failed. A descriptive error message was returned.
messagesArrayInformation about one or more messages
 explanationStringAdditional information to clarify the reason for the message
 idStringMessage identifier of a returned message
 recoveryArrayRecovery information
  textStringUser actions that can be taken to recover from the event
  URLStringLink to the help system for more information, if available
 textStringMessage text associated with the message identifier
The following example is returned if the request is successful.
{
"response": {
"description": "Operator group",
"id": "896726ab-6b96-4d50-8678-e97a9059a784",
"name": "LXC-OPERATOR",
"reserved": false,
"roles": ["lxc-operator"],
"users": []
},
"result": "success",
"messages": [{
"explanation": "",
"id": "FQXHMSE0001I",
"recovery": {
"text": "Information only; no action is required.",
"URL": ""
},
"text": "The request completed successfully."
}]
}