@@ -60,6 +60,20 @@ json :
"writeOnce" : true,
"deleteEnable" : true,
"syncAcl" : true
},
"filesPopularity" : {
"enabled" : true,
"restUrl" : "https://example.com/some_api/some_method"
},
"autoCleaning" : {
"enabled" : true,
"settings" : {
"lowerFileSizeLimit" : 1000,
"upperFileSizeLimit" : 1000000,
"maxFileNotOpenedHours" : 60000,
"target" : 5000000000,
"threshold" : 6000000000
}
}
}
```
@@ -0,0 +1,72 @@

<a name="provider_space_start_cleaning"></a>
#### Start space cleaning
```
POST /provider/spaces/{id}/start_cleaning
```


##### Description
Starts cleaning of space with current configuration.


##### Parameters

|Type|Name|Description|Schema|Default|
|---|---|---|---|---|
|**Path**|**id** <br>*required*|The ID of a space|string|--|


##### Responses

|HTTP Code|Description|Schema|
|---|---|---|
|**204**|Cleaning of given space has started.|No Content|
|**400**|Invalid request.|[Error](../definitions/Error.md#error)|
|**401**|Unauthorized request.|No Content|
|**403**|Forbidden request.|No Content|
|**500**|Internal server error.|[ServiceError](../definitions/ServiceError.md#serviceerror)|


##### Consumes

* `application/json`


##### Example HTTP request

###### Request path
```
json :
"/provider/spaces/string/start_cleaning"
```


##### Example HTTP response

###### Response 400
```
json :
{
"error" : "Invalid Request",
"description" : "User role must be one of 'admin' or 'regular'."
}
```


###### Response 500
```
json :
{
"error" : "string",
"description" : "string",
"module" : "string",
"function" : "string",
"hosts" : {
"string" : "[error](#error)"
}
}
```



@@ -105,7 +105,7 @@ https://172.17.0.4:9443/api/v3/onepanel/zone/workers


### Version information
*Version* : 17.06.0-rc6
*Version* : 17.06.0-rc7


### Contact information
@@ -52,6 +52,9 @@ Resources and operations for managing Oneprovider deployment
|[/provider/spaces/{id}](operations/get_space_details.md)|GET|Get space details|
|[/provider/spaces/{id}](operations/revoke_space_support.md)|DELETE|Revoke space support for a space|
|[/provider/spaces/{id}](operations/modify_space.md)|PATCH|Modify space details|
|[/provider/spaces/{id}/auto_cleaning_reports](operations/get_provider_space_auto_cleaning_reports.md)|GET|Get reports of space auto cleaning|
|[/provider/spaces/{id}/auto_cleaning_status](operations/get_provider_space_auto_cleaning_status.md)|GET|Get status of space auto cleaning|
|[/provider/spaces/{id}/start_cleaning](operations/provider_space_start_cleaning.md)|POST|Start space cleaning|
|[/provider/spaces/{id}/sync](operations/get_provider_space_sync_stats.md)|GET|Get statistics of storage synchronization|
|[/provider/storages](operations/add_storage.md)|POST|Add storage|
|[/provider/storages](operations/get_storages.md)|GET|Get storages|

Large diffs are not rendered by default.