List all of the role elements in JSON format

This method returns a JSON array representation of the elements of the role type. You can specify how the response JSON is formatted with the "format" parameter.


GET http://{hostname}:{port}
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 "list" will be used.
Table 2. Header parameters
Parameter Type Required Description
Accept application/json true
For the format parameter, use one of the following format options:
Primary properties and allowed action IDs
Identical to 'list' format
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.