Triggers space auto-cleaning
Triggers one run of auto-cleaning mechanism for given space.
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string The Id of a space. |
Request Examples
onepanel-rest-cli -u onepanel:$PASSPHRASE triggerAutoCleaning --host https://$HOST:9443Responses
Cleaning of given space has started.
| Property | Type & Description |
|---|---|
reportId string | |
No action taken. Auto-cleaning is already running or there are no files to be cleaned.
Invalid request.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object 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 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.