Discover and Access User Workspaces
This guide explains how to discover and access user workspaces using TerrAPI.
Preliminary requirements
- A valid access token is required to access the TerrAPI Storage API. This access token must be obtained through the Terradue IAM service either by authenticating as a user or by exchanging a user access token.
- a platform scope included in the access token that shall give access to the user workspaces.
Steps
- Get the list of user workspaces using the Get Workspaces Operation in Storage API.
- Select the needed workspace name from the list of workspaces.
- Request a security token for the selected workspace using the Get Security Token Operation in Storage API.
- Use the security token to access the workspace to upload a file in the workspace.
- Create a download URL (signed) to access the file using the Create Download URL Operation in Storage API
A complete example in python is available in this notebook using the TerrAPI Python client.