GET /roles
Fetches information about all user roles. Authentication is required.
Request format
When Forming RBAC API requests to this endpoint, the request is a basic call with authentication, such as:
curl "https://$(puppet config print server):4433/rbac-api/v1/roles" -H "X-Authentication:$(puppet-access show)"
Response format
The response is a JSON object that lists metadata for roles, including permissions objects, and lists of users and groups assigned to the role. For example:
[{"id": 123, "permissions": [{"object_type":"node_groups", "action":"edit_rules", "instance":"*"}, ...], "user_ids": ["1cadd0e0-5887-11e4-8ed6-0800200c9a66","5c1ab4b0-588b-11e4-8ed6-0800200c9a66"], "group_ids": ["2ca57e30-5887-11e4-8ed6-0800200c9a66"], "display_name": "A role", "description": "Edit node group rules"}, ...]
For information about keys in the response, refer to User roles endpoints keys.
For information about error responses, refer to RBAC service errors .