How to use the Project API / ProjectServiceClient
Introduction
Here you get a quick rundown how to basically create, read, update and delete Projects within the AOS.
This should be the first step after gaining access to the storage and creating an API token which is described in the previous chapters.
Create Project
API example for creating a new Project.
Note
Currently, to create a new Project you have to be an AOS instance administrator.
1 2 3 4 5 6 7 8 9 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|
Get Project
API example for fetching info of an existing Project.
Info
This request needs at least READ permissions on the specific Project.
1 2 3 4 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
1 2 3 4 5 6 7 8 9 10 |
|
Get all Projects of User
API example for fetching all registered Projects a specific user is associated with.
Note
You have to be an AOS instance administrator to fetch all registered Projects associated with other users than yourself.
1 2 3 4 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
1 2 3 4 5 6 7 8 9 10 |
|
Update Project
API example for updating an existing Project.
Info
This request needs at least ADMIN permissions on the specific Project.
Warning
A project update overwrites all the fields in the request, even if they're empty. If you want to retain a field you have to explicitly set the old value.
1 2 3 4 5 6 7 8 9 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
1 2 3 4 5 6 7 8 9 10 11 12 |
|
Delete Project
API examples for deleting a Project.
Note
Before a project can be deleted, all collections within the project must have been deleted or moved to other projects. In other words, the project must be empty.
Info
This request needs at least ADMIN permissions on the specific Project.
1 2 3 4 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
1 2 3 4 5 6 7 8 9 10 |
|