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 -H "X-Auth-Token: $TOKEN" -X GET "https://$HOST/api/v3/oneprovider/spaces"

[
    {
        "spaceId": "fb519d81146bcc635b890ff03a5da0fdch34fe",
        "fileId": "094576776E667431723230677767776C6B497031394E445F6E3868677873...",
        "name": "Space1"
    },
    {
        "spaceId": "e14039c53235c44f2f25dce4c90b1f0acha61c",
        "fileId": "000000184465677569642373706163655F73706163653123737061636531...",
        "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.

Property
Type & 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.

Property
Type & 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.

Property
Type & 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.

Property
Type & 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."
}