diff options
author | Alex <lx@deuxfleurs.fr> | 2025-02-05 19:54:42 +0000 |
---|---|---|
committer | Alex <lx@deuxfleurs.fr> | 2025-02-05 19:54:42 +0000 |
commit | 71655c1e89b87fa009d1c5a56448b2fe7df05c49 (patch) | |
tree | 9a61083c2d2b4247703a04976f6ba0baa162bfd2 /doc/drafts | |
parent | e96014ca60331b50a5a67383589ba5b1c74018d0 (diff) | |
parent | 7c8fc04b9645d4cbccd30749735d30aad18c9575 (diff) | |
download | garage-71655c1e89b87fa009d1c5a56448b2fe7df05c49.tar.gz garage-71655c1e89b87fa009d1c5a56448b2fe7df05c49.zip |
Merge pull request 'Admin API refactoring: convert existing commands to API requests (step 3)' (#945) from refactor-admin into next-v2
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/945
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 |