Onedata API Reference

REST API references for Onezone, Oneprovider, and Onepanel.

Get space details

GET /spaces/{sid}

Returns the details about a specific space.

Example cURL requests

Get information about a specific space

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

{
    "name": "My Space 1",
    "providers": [
        {
            "providerId": "a0b1d2e6ad583ba1b14caf3b71bc6129ch4f74",
            "providerName": "MyPrivateCloud"
        },
        {
            "providerId": "b107606a22f006b82f6f665a9e6f116cch0500",
            "providerName": "PublicCloud1"
        }
    ],
    "spaceId": "fb519d81146bcc635b890ff03a5da0fdch34fe",
    "fileId": "094576776E667431723230677767776C6B497031394E445F6E3868677873...",
    "dirId": "094576776E667431723230677767776C6B497031394E445F6E3868677873...",
    "trashDirId": "6C6B497031394E445F6E3868677873094576776E66743172323067776777...",
    "archivesDirId": "723230677767776C6B497031394E445F6E3868677873094576776E667431..."
}

Path parameters

Parameter Type & Description
sid required
string

Space Id.

Request Examples

Shell
oneprovider-rest-cli getSpace sid=$SPACE_ID

Responses

application/json
200

The space information.

PropertyType & Description
spaceId
string

Id of the space.

name
string

Name of the space.

fileId
string

(deprecated) Id of the space directory.

dirId
string

Id of the space directory.

trashDirId
string

Id of the space trash directory, to which deleted files are temporarily moved for deletion in the background.

archivesDirId
string

Id of the space archives root directory, which contains all archives created in the space.

providers
array of objects (Provider)

The list of providers which support this space.

providerId
string

The Id of the provider supporting the space.

providerName
string

The name of the provider

Example

application/json
{
  "name": "My Space 1",
  "spaceId": "cda5d1bd-ca13-40ef-95e6-51fc1cc3b322",
  "fileId": "094576776E667431723230677767776C6B497031394E445F6E3868677873",
  "dirId": "094576776E667431723230677767776C6B497031394E445F6E3868677873",
  "trashDirId": "6C6B497031394E445F6E3868677873094576776E66743172323067776777",
  "archivesDirId": "723230677767776C6B497031394E445F6E3868677873094576776E667431",
  "providers": [
    {
      "providerId": "c40a3a39-0bbc-41cd-878f-5591f8c55014",
      "providerName": "MyPrivateCloud"
    },
    {
      "providerId": "27d58af6-82ef-4bdd-a596-c4ff080fbde6",
      "providerName": "PublicCloud1"
    }
  ]
}
400

Invalid request.

PropertyType & Description
error
object (ErrorJson)

Object describing an error.

id required
string

String identifying the error type. Does not change between error instances.

description required
string

Human readable error description. May contain information specific to given error instance.

details
object

Details about the error instance. The object schema is specific to each error type.

ctx required
object (ErrorJsonCtx)

Technical information about error.

timestamp required
integer

Timestamp in milliseconds.

serviceReleaseVersion required
string

Release version of a product, for example "25.0".

serviceId required
string

Identifier of a service instance — either Oneprovider Id or "onezone".

serviceDomain required
string

Domain of the service.

serviceBuildVersion required
string

Build version of the service.

service required
string

Short name of service.

Enum:
ozwopwozpopp
onedataErrorsRevision required
string

Revision of onedata-errors repo, where the error is defined.

module required
string

Module where the error occurred.

line required
integer

Line number in the module where the error occurred.

Example

application/json
{
  "error": {
    "id": "example",
    "description": "This is an example error.",
    "ctx": {
      "timestamp": 1750762637248,
      "serviceReleaseVersion": "25.0",
      "serviceId": "a7ee2722915b8bf7fb064eb65087cc61ch9357",
      "serviceDomain": "dev-oneprovider-krakow.default.svc.cluster.local",
      "serviceBuildVersion": "231-g8d26f953c3",
      "service": "opw",
      "onedataErrorsRevision": "ca3af8cb",
      "module": "metadata_req",
      "line": 45
    }
  }
}
403

Forbidden request.

PropertyType & Description
error
object (ErrorJson)

Object describing an error.

id required
string

String identifying the error type. Does not change between error instances.

description required
string

Human readable error description. May contain information specific to given error instance.

details
object

Details about the error instance. The object schema is specific to each error type.

ctx required
object (ErrorJsonCtx)

Technical information about error.

timestamp required
integer

Timestamp in milliseconds.

serviceReleaseVersion required
string

Release version of a product, for example "25.0".

serviceId required
string

Identifier of a service instance — either Oneprovider Id or "onezone".

serviceDomain required
string

Domain of the service.

serviceBuildVersion required
string

Build version of the service.

service required
string

Short name of service.

Enum:
ozwopwozpopp
onedataErrorsRevision required
string

Revision of onedata-errors repo, where the error is defined.

module required
string

Module where the error occurred.

line required
integer

Line number in the module where the error occurred.

Example

application/json
{
  "error": {
    "id": "example",
    "description": "This is an example error.",
    "ctx": {
      "timestamp": 1750762637248,
      "serviceReleaseVersion": "25.0",
      "serviceId": "a7ee2722915b8bf7fb064eb65087cc61ch9357",
      "serviceDomain": "dev-oneprovider-krakow.default.svc.cluster.local",
      "serviceBuildVersion": "231-g8d26f953c3",
      "service": "opw",
      "onedataErrorsRevision": "ca3af8cb",
      "module": "metadata_req",
      "line": 45
    }
  }
}
404

Oneprovider REST API not available.

PropertyType & Description
error
object (ErrorJson)

Object describing an error.

id required
string

String identifying the error type. Does not change between error instances.

description required
string

Human readable error description. May contain information specific to given error instance.

details
object

Details about the error instance. The object schema is specific to each error type.

ctx required
object (ErrorJsonCtx)

Technical information about error.

timestamp required
integer

Timestamp in milliseconds.

serviceReleaseVersion required
string

Release version of a product, for example "25.0".

serviceId required
string

Identifier of a service instance — either Oneprovider Id or "onezone".

serviceDomain required
string

Domain of the service.

serviceBuildVersion required
string

Build version of the service.

service required
string

Short name of service.

Enum:
ozwopwozpopp
onedataErrorsRevision required
string

Revision of onedata-errors repo, where the error is defined.

module required
string

Module where the error occurred.

line required
integer

Line number in the module where the error occurred.

Example

application/json
{
  "error": {
    "id": "example",
    "description": "This is an example error.",
    "ctx": {
      "timestamp": 1750762637248,
      "serviceReleaseVersion": "25.0",
      "serviceId": "a7ee2722915b8bf7fb064eb65087cc61ch9357",
      "serviceDomain": "dev-oneprovider-krakow.default.svc.cluster.local",
      "serviceBuildVersion": "231-g8d26f953c3",
      "service": "opw",
      "onedataErrorsRevision": "ca3af8cb",
      "module": "metadata_req",
      "line": 45
    }
  }
}
500

Internal server error.

PropertyType & Description
error
object (ErrorJson)

Object describing an error.

id required
string

String identifying the error type. Does not change between error instances.

description required
string

Human readable error description. May contain information specific to given error instance.

details
object

Details about the error instance. The object schema is specific to each error type.

ctx required
object (ErrorJsonCtx)

Technical information about error.

timestamp required
integer

Timestamp in milliseconds.

serviceReleaseVersion required
string

Release version of a product, for example "25.0".

serviceId required
string

Identifier of a service instance — either Oneprovider Id or "onezone".

serviceDomain required
string

Domain of the service.

serviceBuildVersion required
string

Build version of the service.

service required
string

Short name of service.

Enum:
ozwopwozpopp
onedataErrorsRevision required
string

Revision of onedata-errors repo, where the error is defined.

module required
string

Module where the error occurred.

line required
integer

Line number in the module where the error occurred.

Example

application/json
{
  "error": {
    "id": "example",
    "description": "This is an example error.",
    "ctx": {
      "timestamp": 1750762637248,
      "serviceReleaseVersion": "25.0",
      "serviceId": "a7ee2722915b8bf7fb064eb65087cc61ch9357",
      "serviceDomain": "dev-oneprovider-krakow.default.svc.cluster.local",
      "serviceBuildVersion": "231-g8d26f953c3",
      "service": "opw",
      "onedataErrorsRevision": "ca3af8cb",
      "module": "metadata_req",
      "line": 45
    }
  }
}