Show information about a single role in JSON format

This method returns a single role JSON object with information about the element that has the specified id. You can change the format of the JSON response by specifying the format parameter.

Request

GET http://{hostname}:{port}
  /roles/{id}?{parameters}
Accept: application/json
Table 1. Request parameters
Parameter Type Required Description
format string false One of the format options; this parameter determines what information is included in the JSON response. If not specified, or if an unrecognized value is specified, the default format of "detail" will be used.
Table 2. URL parameters
Parameter Type Required Description
id string true The ID of the role element.
Table 3. Header parameters
Parameter Type Required Description
Accept application/json true
For the format parameter, use one of the following format options:
list
Primary properties and allowed action IDs
detail
Identical to 'list' format
name
Name and ID only
For details about the full JSON that the server returns when you select one of these formats, see the related resource: roles resource.