diff options
author | Alex Auvolat <lx@deuxfleurs.fr> | 2025-01-30 17:45:54 +0100 |
---|---|---|
committer | Alex Auvolat <lx@deuxfleurs.fr> | 2025-02-03 18:54:51 +0100 |
commit | bdaf55ab3f866234bd5a7d585758265a88d2906a (patch) | |
tree | e5160b9cc4ca312c6c649989b80d4ba7e6490559 /doc/drafts | |
parent | e96014ca60331b50a5a67383589ba5b1c74018d0 (diff) | |
download | garage-bdaf55ab3f866234bd5a7d585758265a88d2906a.tar.gz garage-bdaf55ab3f866234bd5a7d585758265a88d2906a.zip |
cli_v2: migrate cleanupincompleteuploads to Admin API
admin api: add CleanupIncompleteUploads spec
Diffstat (limited to 'doc/drafts')
-rw-r--r-- | doc/drafts/admin-api.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/drafts/admin-api.md b/doc/drafts/admin-api.md index eb327307..029c7ddd 100644 --- a/doc/drafts/admin-api.md +++ b/doc/drafts/admin-api.md @@ -702,6 +702,28 @@ Deletes a storage bucket. A bucket cannot be deleted if it is not empty. Warning: this will delete all aliases associated with the bucket! +#### CleanupIncompleteUploads `POST /v2/CleanupIncompleteUploads` + +Cleanup all incomplete uploads in a bucket that are older than a specified number +of seconds. + +Request body format: + +```json +{ + "bucketId": "e6a14cd6a27f48684579ec6b381c078ab11697e6bc8513b72b2f5307e25fff9b", + "olderThanSecs": 3600 +} +``` + +Response format + +```json +{ + "uploadsDeleted": 12 +} +``` + ### Operations on permissions for keys on buckets |