Roles
List all roles from a organization
GET
organization_id*stringThe numeric ID or URL Slug of an organization.
page?integerNumber of the page to be retrieved
Range
1 <= valueper_page?integerNumber of items returned per page
Range
1 <= value <= 100Accept*stringapplication/json
Content-Type*stringapplication/json
Ok
application/json- response
[index: integer]?|nullcurl -X GET 'https://api.devopness.com/organizations/johndoe/roles?page=1&per_page=25' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <your_api_token>' \ -H 'Content-Type: application/json'Example Response200
[ { "id": 45678, "name": "admin", "description": "Has total access to resources", "is_predefined": false, "permissions": [ "application:read", "application:create", "server:read" ], "organization": { "id": 16523, "name": "My Organization", "url_slug": "MyOrganization", "resource_summary": [ { "resource_type": "environment", "resource_type_plural": "environments", "resource_type_human_readable": "Environment", "resource_type_human_readable_plural": "Environments", "summary": { "count": 1 } } ], "owner": { "id": 1, "name": "string", "email": "user@example.com", "url_slug": "someone", "language": "en", "active": true, "created_at": "2019-09-25T15:50:48.000000Z", "updated_at": "2019-09-25T13:52:04.000000Z" }, "created_at": "2019-09-25T15:50:48.000000Z", "updated_at": "2019-09-25T13:52:04.000000Z" }, "created_by_user": { "id": 1, "name": "string", "email": "user@example.com", "url_slug": "someone", "language": "en", "active": true, "created_at": "2019-09-25T15:50:48.000000Z", "updated_at": "2019-09-25T13:52:04.000000Z" }, "created_at": "2019-09-25T13:22:37.000000Z", "updated_at": "2019-09-25T13:22:37.000000Z" }]