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.
Use to retrieve a list of roles.
Executed successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
[- {
- "name": "admin",
- "description": "can manage all resources",
- "permissions": [
- {
- "resourceType": "department",
- "displayName": "Projects",
- "groupId": "organization",
- "actions": [
- "create"
]
}
], - "type": "system",
- "tenantId": "string",
- "enabled": true,
- "kubernetesPermissions": {
- "predefinedRole": "12"
}, - "id": 32,
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "createdBy": "user@run.ai",
- "custom": true,
- "effectiveEnabled": true
}
]
Retrieve the details of a role by id.
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "name": "admin",
- "description": "can manage all resources",
- "permissions": [
- {
- "resourceType": "department",
- "displayName": "Projects",
- "groupId": "organization",
- "actions": [
- "create"
]
}
], - "type": "system",
- "tenantId": "string",
- "enabled": true,
- "kubernetesPermissions": {
- "predefinedRole": "12"
}, - "id": 32,
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "createdBy": "user@run.ai",
- "custom": true,
- "effectiveEnabled": true
}