How to use the Workspace API / WorkspaceServiceClient
Introduction
Workspaces are a dedicate class of Projects that can be used to provide unregistered users with an anonymous, encapsulated space in Aruna. When a workspace is created, an internal service account is automatically created for the administration. Also token is generated for the service account that only has permissions for the workspace and cannot be changed.
After a user has registered in Aruna, he/she is free to use this token to claim the entire Workspace and associate it with his or her user like a normal Project.
Templates for Workspaces can be created in advance. Through a template, the basic conditions for the creation of a Workspace are defined and automated in order to simplify the administration of Workspaces. The following attributes can be defined by a template:
- owner: The user id of the owner of the data, as long as it is located in the anonymous workspace
- prefix: Prefix that is placed in front of the name when resources in the Workspace are created:
<prefix>-<resource-name>
- hook_ids: Ids of the hooks to which the workspace is assigned
- endpoint_ids: Ids of the endpoints that are allowed for the data storage of the Workspace
As long as data is located within an anonymous Workspace, it is not included in the search index. However, as soon as the data is claimed by a user and it is available with the data class Public/Private, it is also subsequently entered in the search index.
Create Workspace
API examples of how to create a new Workspace.
Required permissions
To create a new Workspace you only have to be a registered Aruna user.
1 2 3 4 5 6 7 8 9 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
Create Workspace template
API examples of how to create a new Workspace.
Required permissions
To create a new Workspace template you do not need special permissions but have to use a personal token.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
Get Workspace template
API examples of how to get a Workspace template.
Required permissions
To fetch a Workspace template you do not need special permissions but have to use a personal token.
Only global Aruna administrators can fetch information of Workspace templates created by other users.
1 2 3 4 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
List owned Workspace templates
API examples of how to get all Workspace templates owned by yourself.
Required permissions
To fetch all your Workspace templates you do not need special permissions but have to use a personal token.
1 2 3 4 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|
Claim Workspace
API examples of how to claim an anonymous Workspace for your user.
Required permissions
To claim a workspace you do not need special permissions but you have to use the specific Workspace token.
1 2 3 4 5 6 7 8 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
Delete Workspace template
API examples of how to delete a Workspace template.
Required permissions
To delete a Workspace template you do not need special permissions but have to use a personal token.
1 2 3 4 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
Delete Workspace
API examples of how to delete a Workspace.
Required permissions
This request requires at least APPEND permissions on the specific Workspace.
1 2 3 4 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|