Onedata API Reference

REST API references for Onezone, Oneprovider, and Onepanel.

Get all user spaces

GET /spaces

Returns the list of all user spaces.

Example cURL requests

List all user spaces

curl -X GET -H "X-Auth-Token: $TOKEN" \
"https://$HOST/api/v3/oneprovider/spaces"

[
  {
    "spaceId": "51306215-674a-47b7-afd1-54fa45bcaff7",
    "name": "Space1"
  },
  {
    "spaceId": "0a568302-0f5e-454d-a6bc-7da7e1bfb985",
    "name": "Space2"
  }
]

Request Examples

Shell
oneprovider-rest-cli getAllSpaces

Responses

application/json
200

The list of all user spaces - containining their names and Id's.

No schema provided.

400

Invalid request.

PropertyType & Description
error
string

Identifier representing internal error code.

error_description
string

Detailed error message.

Example

application/json
{
  "error": "invalid_token",
  "error_description": "Provided token could not be validated."
}
403

Forbidden request.

PropertyType & Description
error
string

Identifier representing internal error code.

error_description
string

Detailed error message.

Example

application/json
{
  "error": "invalid_token",
  "error_description": "Provided token could not be validated."
}
404

Oneprovider REST API not available.

PropertyType & Description
error
string

Identifier representing internal error code.

error_description
string

Detailed error message.

Example

application/json
{
  "error": "invalid_token",
  "error_description": "Provided token could not be validated."
}
500

Internal server error.

PropertyType & Description
error
string

Identifier representing internal error code.

error_description
string

Detailed error message.

Example

application/json
{
  "error": "invalid_token",
  "error_description": "Provided token could not be validated."
}