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/api/garage-admin-v2.yml | |
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/api/garage-admin-v2.yml')
-rw-r--r-- | doc/api/garage-admin-v2.yml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/api/garage-admin-v2.yml b/doc/api/garage-admin-v2.yml index 725c1d01..f9e3c10c 100644 --- a/doc/api/garage-admin-v2.yml +++ b/doc/api/garage-admin-v2.yml @@ -826,6 +826,46 @@ paths: schema: $ref: '#/components/schemas/BucketInfo' + /CleanupIncompleteUploads: + post: + tags: + - Bucket + operationId: "CleanupIncompleteUploads" + summary: "Cleanup incomplete uploads in a bucket" + description: | + Cleanup all incomplete uploads in a bucket that are older than a specified number of seconds + requestBody: + description: | + Bucket id and minimum age of uploads to delete (in seconds) + required: true + content: + application/json: + schema: + type: object + required: [bucketId, olderThanSecs] + properties: + bucketId: + type: string + example: "e6a14cd6a27f48684579ec6b381c078ab11697e6bc8513b72b2f5307e25fff9b" + olderThanSecs: + type: integer + example: "3600" + responses: + '500': + description: "The server can not handle your request. Check your connectivity with the rest of the cluster." + '400': + description: "The payload is not formatted correctly" + '200': + description: "The bucket was cleaned up successfully" + content: + application/json: + schema: + type: object + properties: + uploadsDeleted: + type: integer + example: 12 + /AllowBucketKey: post: tags: |