v1

latestOpenAPI 3.1.0AGPL-3.02026-07-1249126143.7 KB
Permission

⚠️ DISCLAIMER: Garage's developers are aware that this endpoint has an unconventional semantic. Be extra careful when implementing it, its behavior is not obvious.

Allows a key to do read/write/owner operations on a bucket.

Flags in permissions which have the value true will be activated. Other flags will remain unchanged (ie. they will keep their internal value).

For example, if you set read to true, the key will be allowed to read the bucket. If you set it to false, the key will keeps its previous read permission. If you want to disallow read for the key, check the DenyBucketKey operation.

post/v2/AllowBucketKey

Request body

accessKeyIdstring required
bucketIdstring required

Response

Returns exhaustive information about the bucket

bytesinteger required

Total number of bytes used by objects in this bucket

createdstring date-time required

Bucket creation date

globalAliasesstring[] required

List of global aliases for this bucket

idstring required

Identifier of the bucket

objectsinteger required

Number of objects in this bucket

unfinishedMultipartUploadBytesinteger required

Total number of bytes used by unfinished multipart uploads in this bucket

unfinishedMultipartUploadPartsinteger required

Number of parts in unfinished multipart uploads in this bucket

unfinishedMultipartUploadsinteger required

Number of unfinished multipart uploads in this bucket

unfinishedUploadsinteger required

Number of unfinished uploads in this bucket

websiteAccessboolean required

Whether website access is enabled for this bucket