caosdb.acm.v1alpha1¶
caosdb/acm/v1alpha1/main.proto¶
This is the main file of the caosdb.acm.v1alpha1 package.
CreateSingleRoleRequest¶
Request message for the CreateSingleRole RPC
Field |
Type |
Label |
Description |
---|---|---|---|
role |
The new role. |
CreateSingleRoleResponse¶
Response message for the CreateSingleRole RPC
CreateSingleUserRequest¶
Request message for the CreateSingleUser RPC
Field |
Type |
Label |
Description |
---|---|---|---|
user |
The new user. |
||
password_setting |
The new password. |
CreateSingleUserResponse¶
Response message for the CreateSingleUser RPC
DeleteSingleRoleRequest¶
Request message for the DeleteSingleRole RPC
Field |
Type |
Label |
Description |
---|---|---|---|
name |
the name of the role. |
DeleteSingleRoleResponse¶
Response message for the DeleteSingleRole RPC
DeleteSingleUserRequest¶
Request message for the DeleteSingleUser RPC
Field |
Type |
Label |
Description |
---|---|---|---|
realm |
The user’s realm |
||
name |
The user’s name |
DeleteSingleUserResponse¶
Response message for the DeleteSingleUser RPC
EmailSetting¶
EmailSetting - it is handy to have this as a separate message b/c otherwise we could not distinguish between empty string and an unspecified email.
Field |
Type |
Label |
Description |
---|---|---|---|
The email adress |
EntitySetting¶
EntitySetting - it is handy to have this as a separate message b/c otherwise we could not distinguish between empty string and an unspecified entity.
Field |
Type |
Label |
Description |
---|---|---|---|
entity_id |
The entity which represents this user (e.g. a Person or Device Record). |
ListKnownPermissionsRequest¶
Request to list all known permissions (excluding entity permissions).
ListKnownPermissionsResponse¶
Response with all known permissions. Clients may choose to create drop-down menues from this list.
Field |
Type |
Label |
Description |
---|---|---|---|
permissions |
repeated |
known permissions |
ListRoleItem¶
Combines role, the role’s capabilities and the current users permissions.
Field |
Type |
Label |
Description |
---|---|---|---|
role |
Role |
||
permissions |
repeated |
The permissions of the user of the current session w.r.t. this role. |
|
capabilities |
repeated |
What can be done with this role. |
ListRolesRequest¶
Request message for the ListRoles RPC
Field |
Type |
Label |
Description |
---|---|---|---|
paging |
Desired paging settings for the response. |
ListRolesResponse¶
Response message for the ListRoles RPC
Field |
Type |
Label |
Description |
---|---|---|---|
paging |
Actual paging setting of the response. |
||
roles |
repeated |
A subset (when paging is used) or the complete set (otherwise) of roles. |
ListUsersRequest¶
Request message for the ListUsers RPC.
Field |
Type |
Label |
Description |
---|---|---|---|
paging |
Desired paging settings for the response. |
ListUsersResponse¶
Response message for the ListUsers RPC.
Field |
Type |
Label |
Description |
---|---|---|---|
paging |
Actual paging setting of the response. |
||
users |
repeated |
A subset (when paging is used) or the complete set (otherwise) of known users. |
PagingRequest¶
Client preferences for the paging. The server MUST respect the index property or send the complete result set. The server MAY choose to send a different page length in the response
Field |
Type |
Label |
Description |
---|---|---|---|
index |
Desired index of the first element in the response. The index depends on the order of the elements in the result set. |
||
page_length |
Desired length of the page in the server response. |
PagingResponse¶
The actual paging of the response.
Field |
Type |
Label |
Description |
---|---|---|---|
total_number |
Total numbers of results. |
||
current_index |
Index of the first item in the page. |
PasswordSetting¶
PasswordSetting - it is handy to have this as a separate message b/c otherwise we could not distinguish between empty string and an unspecified password.
Field |
Type |
Label |
Description |
---|---|---|---|
password |
The password |
PermissionDescription¶
Description of a permission.
Field |
Type |
Label |
Description |
---|---|---|---|
permission |
The permission |
||
description |
The description |
PermissionRule¶
PermissionRule. These belong to Roles.
Field |
Type |
Label |
Description |
---|---|---|---|
permission |
The permission which is being granted oder denied. |
||
priority |
Priority permission rules (TRUE) overrule non-priority (FALSE) permission rules. |
||
grant |
True means that the permission is being granted by this rule, false means the permission is being DENIED! |
RetrieveSingleRoleRequest¶
Request message for the RetrieveSingleRole RPC
Field |
Type |
Label |
Description |
---|---|---|---|
name |
the name of the role. |
RetrieveSingleRoleResponse¶
Response message for the RetrieveSingleRole RPC
Field |
Type |
Label |
Description |
---|---|---|---|
role |
The role. |
||
users |
repeated |
Known users with this role |
|
permissions |
repeated |
The permissions of the user of the current session w.r.t. this role. |
|
capabilities |
repeated |
What can be do with this role. |
RetrieveSingleUserRequest¶
Request message for the RetrieveSingleUser RPC
Field |
Type |
Label |
Description |
---|---|---|---|
realm |
The user’s realm |
||
name |
The user’s name |
RetrieveSingleUserResponse¶
Response message for the RetrieveSingleUser RPC
Field |
Type |
Label |
Description |
---|---|---|---|
user |
The user |
||
permissions |
repeated |
The permissions of the user of the current session. |
|
capabilities |
repeated |
What can be done with this user |
Role¶
Role
Field |
Type |
Label |
Description |
---|---|---|---|
name |
Unique name of this role. |
||
description |
Description of the purpose of this role or which group of users this role represents. |
||
permission_rules |
repeated |
List of permission rules for this role. |
UpdateSingleRoleRequest¶
Request message for the UpdateSingleRole RPC
Field |
Type |
Label |
Description |
---|---|---|---|
role |
The role |
UpdateSingleRoleResponse¶
Response message for the UpdateSingleRole RPC
UpdateSingleUserRequest¶
Request message for the UpdateSingleUser RPC
Field |
Type |
Label |
Description |
---|---|---|---|
user |
The new user. |
||
password_setting |
The new password. Password will not be updated when this is unset. |
UpdateSingleUserResponse¶
Response message for the UpdateSingleUser RPC
User¶
User
Field |
Type |
Label |
Description |
---|---|---|---|
status |
Indicates whether the user is active. Only active users can sign in and interact with the CaosDB Server. |
||
realm |
Realm of this user. The realm is the authority which can authenticate this user, e.g. ‘PAM’ when the user is a (POSIX) user from the server’s host, or ‘CaosDB’ when CaosDB server itself can authenticate the user. |
||
name |
Name of this user. |
||
email_setting |
Email setting of this user. |
||
entity_setting |
Entity setting of this user. |
||
roles |
repeated |
List of roles of this user. |
RoleCapabilities¶
Role Capabilities
Name |
Number |
Description |
---|---|---|
ROLE_CAPABILITIES_UNSPECIFIED |
0 |
Unspecified capability |
ROLE_CAPABILITIES_DELETE |
1 |
This role is deletable |
ROLE_CAPABILITIES_UPDATE_PERMISSION_RULES |
2 |
This role’s permissions can be changed |
ROLE_CAPABILITIES_ASSIGN |
3 |
This role can be assigned to a user |
RolePermissions¶
Role Permissions
Name |
Number |
Description |
---|---|---|
ROLE_PERMISSIONS_UNSPECIFIED |
0 |
Unspecified permission |
ROLE_PERMISSIONS_DELETE |
1 |
Role can be deleted |
ROLE_PERMISSIONS_UPDATE_DESCRIPTION |
2 |
Description can be updated |
ROLE_PERMISSIONS_UPDATE_PERMISSION_RULES |
3 |
Permission rules of this role can be updated |
ROLE_PERMISSIONS_ASSIGN |
4 |
This role can be assigned |
UserCapabilities¶
What can be done with a user (generally speaking, if permissions suffice).
Name |
Number |
Description |
---|---|---|
USER_CAPABILITIES_UNSPECIFIED |
0 |
Unspecified capability |
USER_CAPABILITIES_DELETE |
1 |
User can be deleted. |
USER_CAPABILITIES_UPDATE_PASSWORD |
2 |
The user’s password can be updated. |
UserPermissions¶
Permissions for updating and deleting a user.
Name |
Number |
Description |
---|---|---|
USER_PERMISSIONS_UNSPECIFIED |
0 |
Unspecified permission |
USER_PERMISSIONS_DELETE |
1 |
The user can be deleted. |
USER_PERMISSIONS_UPDATE_PASSWORD |
2 |
The password of the user can be updated. |
USER_PERMISSIONS_UPDATE_EMAIL |
3 |
The email of the user can be updated. |
USER_PERMISSIONS_UPDATE_STATUS |
4 |
The status (active/inactive) of the user can be changed. |
USER_PERMISSIONS_UPDATE_ROLES |
5 |
The roles of the user can be altered. |
USER_PERMISSIONS_UPDATE_ENTITY |
6 |
Ths entity of the user can be set. |
UserStatus¶
UserStatus
Name |
Number |
Description |
---|---|---|
USER_STATUS_UNSPECIFIED |
0 |
The user status is unspecified/unknown. |
USER_STATUS_INACTIVE |
1 |
The user is inactive and cannot sign in. |
USER_STATUS_ACTIVE |
2 |
The user is active and can sign in. |
AccessControlManagementService¶
A service for managing the access to the CaosDB Server via user accounts, roles and permissions.
Method Name |
Request Type |
Response Type |
Description |
---|---|---|---|
ListUsers |
Request the list of known users. |
||
RetrieveSingleUser |
Retrieve a single user |
||
CreateSingleUser |
Create a single new user |
||
UpdateSingleUser |
Update a single user |
||
DeleteSingleUser |
Delete a single user |
||
ListRoles |
Request the list of roles. |
||
RetrieveSingleRole |
Retrieve a single role |
||
CreateSingleRole |
Create a single new role |
||
UpdateSingleRole |
Update a single role |
||
DeleteSingleRole |
Delete a single role |
||
ListKnownPermissions |
List all known permissions |