Resource Center/Hardware/Primary Storage Operations
PUTPrimary Storage OperationsSince 4.8.0SynchronousAuth Required
CleanUpStorageTrashOnPrimaryStorage
CleanUpStorageTrashOnPrimaryStorage
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringRequiredThe primary storage UUID.
Body Fields
cleanupstoragetrashonprimarystorageObjectRequiredcleanupstoragetrashonprimarystorage request body object.
forcebooleanWhether or not to force the primary storage to be cleaned.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/primary-storage/{uuid}/storagetrash/actions
/zstack/v1/primary-storage/{uuid}/storagetrash/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/primary-storage/{uuid}/storagetrash/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"cleanupstoragetrashonprimarystorage":{"force":true},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "result": { "pool-2": [ "E92501AC0F30486282317C3412E27307", "876D1F78BB35405DBBFEC61226B13FDA" ], "pool-1": [ "09f35ca96dfa4f7d8171a6583bbcc4fe", "7ae6b23ab27e48b7b7abd25c22f1f91a" ] }, "total": 4 }Change History
This API has no change history records yet.
