Get the report from a space auto-cleaning run
Returns the details of a specific auto-cleaning run.
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string The Id of a space. |
| report_id required | string The Id of an auto-cleaning report. |
Request Examples
onepanel-rest-cli -u onepanel:$PASSPHRASE --host https://$HOST:9443 getProviderSpaceAutoCleaningReports id=$SPACE_ID report_id=$REPORT_ID
Responses
The report from a space auto-cleaning run.
| Property | Type & Description |
|---|---|
id string Id of an auto-cleaning report. | |
index string Index of an auto-cleaning report. It can be used to list report Ids starting from given report. | |
startedAt string Start time of an auto-cleaning run in ISO 8601 format. | |
stoppedAt string Finish time of an auto-cleaning run in ISO 8601 format. | |
releasedBytes integer Number of bytes deleted during an auto-cleaning run. | |
bytesToRelease integer Number of bytes that should be deleted. | |
filesNumber integer Number of deleted files. | |
status string Status of an auto-cleaning run. Enum: activecancellingcompletedfailedcancelled | |
Example
{
"id": "asdfhLfgPDGSDFASDHgI",
"index": "1290736458asdfhL",
"startedAt": "2017-06-22T13:29:39.654Z",
"stoppedAt": "2017-06-22T15:57:41.958Z",
"releasedBytes": 60000,
"bytesToRelease": 500,
"filesNumber": 10,
"status": "completed"
}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."
}
}