Use this API to get the information of a role.
Method |
URL |
Required authentication |
Get |
/V1/CMDB/Roles |
Yes |
Name |
Description |
|---|---|
Token*required |
Place the token received from the API Log in to get an authentication token. |
roleName |
The name of the role. If null, return the information of all roles. |
Parameter |
Type |
Description |
Example |
|---|---|---|---|
roleData |
List |
A list of role information. It contains the following parameters: ▪roleName (string): the name of a role. ▪description (string): the description of a role. ▪privileges (list): the privileges of a role. |
{ |
statusCode |
integer |
The returned status code of executing the API. |
|
statusDescription |
string |
The explanation of the status code. |