Manual import
Manual import allows registering specific files lying on a storage backend into a Onedata space. For more details, see the documentation
here.
In this exercise, you create a space supported by a manually imported storage, using REST API.
Create a new space - as space management is done in Onezone we will use Onezone REST API:
curl -v -H "X-Auth-Token: $ZONE_ACCESS_TOKEN" -H "Content-type: application/json" \
-X POST -d '{ "name" : "manual_import_space" }' https://$ZONE_HOST/api/v3/onezone/user/spaces
In the response, you should receive a new space URI in the form of https://$ZONE_HOST/api/onezone/v3/user/spaces/{id}
.
Save the space ID from this response in the MANUAL_IMPORT_SPACE_ID
variable:
export MANUAL_IMPORT_SPACE_ID=...