Get space details
Returns details of space specified by space Id in the path.
Example cURL requests
Get space details
curl -H "X-Auth-Token: $TOKEN" -X GET https://$OP_PANEL_HOST/api/v3/onepanel/provider/spaces/$SPACE_ID
{
"supportingProviders": {
"03c7e42a793912307b01b1bbb72a3a6bch4c1c": 10000000
},
"storageId": "18a42a43b1b2d92455ffa09e9a15df7fch4f82",
"spaceOccupancy": 0,
"name": "someSpace",
"localStorages": ["18a42a43b1b2d92455ffa09e9a15df7fch4f82"],
"importedStorage": false,
"id": "16403a6c45105010dc7103e31874cb3echac41",
"accountingEnabled": false,
"dirStatsServiceEnabled": true,
"dirStatsServiceStatus": "initializing"
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string The Id of a space which details should be returned. |
Request Examples
onepanel-rest-cli -u onepanel:$PASSPHRASE getSpaceDetails id=$SPACE_ID --host https://$OP_PANEL_HOST:9443Responses
The space details.
| Property | Type & Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id string The Id of the space. | |||||||||||||||||
name string The name of the space. | |||||||||||||||||
storageId string Id of storage that supports this space on provider that is associated with this panel. | |||||||||||||||||
localStorages array of strings The list of IDs of cluster storage resources. | |||||||||||||||||
supportingProviders object The collection of provider IDs with associated supported storage space in bytes. | |||||||||||||||||
storageImport object (StorageImport) Configuration of the storage import within the space.
| |||||||||||||||||
spaceOccupancy integer Amount of storage [b] used by data from given space on that storage. | |||||||||||||||||
accountingEnabled boolean Indicates if accounting is enabled. The accounting mechanism utilizes directory statistics to keep track of quota usage within a space for the corresponding supporting provider. | |||||||||||||||||
dirStatsServiceEnabled boolean Indicates if the directory statistics service is enabled. The service gathers statistics concerning logical and physical directory size, file count and update times. It cannot be disabled if accounting is enabled. | |||||||||||||||||
dirStatsServiceStatus string Current status of directory statistics service. Enum: initializingenabledstoppingdisabled | |||||||||||||||||
Unauthorized request.
Forbidden request.
Space does not exist or is not supported by the provider.
Internal server error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object (ErrorDetails) Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Services needed to fulfill this request are not running.