Get space details
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
oneprovider-rest-cli getSpace sid=$SPACE_IDResponses
The space information.
Id of the space.
Name of the space.
(deprecated) Id of the space directory.
Id of the space directory.
Id of the space trash directory, to which deleted files are temporarily moved for deletion in the background.
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.
The list of providers which support this space.
The Id of the provider supporting the space.
The name of the provider
Example
{
"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"
}
]
}Invalid request.
error object (ErrorJson) Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
ctx required object (ErrorJsonCtx) Technical information about error.
Technical information about error.
Timestamp in milliseconds.
Release version of a product, for example "25.1".
Identifier of a service instance — either Oneprovider Id or "onezone".
Domain of the service.
Build version of the service.
Short name of service.
Revision of onedata-errors repo, where the error is defined.
Module where the error occurred.
Line number in the module where the error occurred.
Example
{
"error": {
"id": "example",
"description": "This is an example error.",
"ctx": {
"timestamp": 1750762637248,
"serviceReleaseVersion": "25.1",
"serviceId": "a7ee2722915b8bf7fb064eb65087cc61ch9357",
"serviceDomain": "dev-oneprovider-krakow.default.svc.cluster.local",
"serviceBuildVersion": "231-g8d26f953c3",
"service": "opw",
"onedataErrorsRevision": "ca3af8cb",
"module": "metadata_req",
"line": 45
}
}
}Forbidden request.
error object (ErrorJson) Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
ctx required object (ErrorJsonCtx) Technical information about error.
Technical information about error.
Timestamp in milliseconds.
Release version of a product, for example "25.1".
Identifier of a service instance — either Oneprovider Id or "onezone".
Domain of the service.
Build version of the service.
Short name of service.
Revision of onedata-errors repo, where the error is defined.
Module where the error occurred.
Line number in the module where the error occurred.
Example
{
"error": {
"id": "example",
"description": "This is an example error.",
"ctx": {
"timestamp": 1750762637248,
"serviceReleaseVersion": "25.1",
"serviceId": "a7ee2722915b8bf7fb064eb65087cc61ch9357",
"serviceDomain": "dev-oneprovider-krakow.default.svc.cluster.local",
"serviceBuildVersion": "231-g8d26f953c3",
"service": "opw",
"onedataErrorsRevision": "ca3af8cb",
"module": "metadata_req",
"line": 45
}
}
}Oneprovider REST API not available.
error object (ErrorJson) Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
ctx required object (ErrorJsonCtx) Technical information about error.
Technical information about error.
Timestamp in milliseconds.
Release version of a product, for example "25.1".
Identifier of a service instance — either Oneprovider Id or "onezone".
Domain of the service.
Build version of the service.
Short name of service.
Revision of onedata-errors repo, where the error is defined.
Module where the error occurred.
Line number in the module where the error occurred.
Example
{
"error": {
"id": "example",
"description": "This is an example error.",
"ctx": {
"timestamp": 1750762637248,
"serviceReleaseVersion": "25.1",
"serviceId": "a7ee2722915b8bf7fb064eb65087cc61ch9357",
"serviceDomain": "dev-oneprovider-krakow.default.svc.cluster.local",
"serviceBuildVersion": "231-g8d26f953c3",
"service": "opw",
"onedataErrorsRevision": "ca3af8cb",
"module": "metadata_req",
"line": 45
}
}
}Internal server error.
error object (ErrorJson) Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
ctx required object (ErrorJsonCtx) Technical information about error.
Technical information about error.
Timestamp in milliseconds.
Release version of a product, for example "25.1".
Identifier of a service instance — either Oneprovider Id or "onezone".
Domain of the service.
Build version of the service.
Short name of service.
Revision of onedata-errors repo, where the error is defined.
Module where the error occurred.
Line number in the module where the error occurred.
Example
{
"error": {
"id": "example",
"description": "This is an example error.",
"ctx": {
"timestamp": 1750762637248,
"serviceReleaseVersion": "25.1",
"serviceId": "a7ee2722915b8bf7fb064eb65087cc61ch9357",
"serviceDomain": "dev-oneprovider-krakow.default.svc.cluster.local",
"serviceBuildVersion": "231-g8d26f953c3",
"service": "opw",
"onedataErrorsRevision": "ca3af8cb",
"module": "metadata_req",
"line": 45
}
}
}