Support space
Supports an existing space.
Example cURL requests
Support space
curl -H "X-Auth-Token: $TOKEN" -X POST https://$OP_PANEL_HOST/api/v3/onepanel/provider/spaces \
-H "Content-Type: application/json" -d '{
"token": "MDAU02QHLaaJ00go",
"size": 10000000,
"storageId": "18a42a43b1b2d9e9a1f82"
}'
{
"id": "16403a6c45105010dc7103e31874cb3echac41"
}
Request body
Specification of the space support request including support size and token.
| Property | Type & Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
token string The token for space creation or support. | |||||||||||||||||
size integer The storage space size in bytes that provider is willing to assign to the space. | |||||||||||||||||
storageId string The Id of the storage resource where the space data should be stored. | |||||||||||||||||
storageImport object (StorageImport) Configuration of the storage import within the space.
| |||||||||||||||||
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. | |||||||||||||||||
Request Examples
{
"token": "ASDJNASD87687ASDMNBMNASD87786asd",
"size": 1024000,
"storageId": "x7It3cpgNgLZ8RwOrOoW"
}Responses
Created space support relation.
| Property | Type & Description |
|---|---|
id string Resource Id. | |
Example
{
"id": "26cbc2b20f92416eb9f3cba65e50c1d2"
}Invalid request.
| 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."
}
}Unauthorized request.
Forbidden request.
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.