Roles

A role is a group of permissions that can be granted. Permissions are a set of actions that can be applied to entities. For more information, see Roles.

Get a list of roles.

Use to retrieve a list of roles.

SecuritybearerAuth
Responses
200

Executed successfully.

400

Bad request.

401

Unauthorized

403

Forbidden

500

unexpected error

503

unexpected error

get/api/v1/authorization/roles
Response samples
application/json
[
  • {
    }
]

Get a role by id.

Retrieve the details of a role by id.

SecuritybearerAuth
Request
path Parameters
roleIdPath
required
integer <int32> >= 0

The id of the role to retrieve

Example: 32
Responses
200

Executed successfully.

400

Bad request.

401

Unauthorized

403

Forbidden

500

unexpected error

503

unexpected error

get/api/v1/authorization/roles/{roleIdPath}
Response samples
application/json
{
  • "name": "admin",
  • "description": "can manage all resources",
  • "permissions": [
    ],
  • "id": 32,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "deletedAt": "2019-08-24T14:15:22Z",
  • "tenantId": 1001,
  • "createdBy": "user@run.ai"
}