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.
Request
GET http://{hostname}:{port}
/roles/?{parameters}
Accept: application/json
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. |
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