Buckets
A bucket is the container for your objects. This page describes the bucket operations of the chili S3 API. As a rule, you create buckets in the chili Console, because only there can you choose Object Lock, geo-redundancy and the deletion key. All examples use path style and the endpoint https://s3-ch-east.chilistorage.com.
Operations
Operation | Method and path | Notes |
|---|---|---|
ListBuckets |
| Lists the buckets of the account |
CreateBucket |
| Recommended: chili Console |
DeleteBucket |
| Only empty buckets without a deletion key |
HeadBucket |
| Checks existence and access |
ListObjects |
| Version 1, paging with |
ListObjectsV2 |
| Version 2, paging with |
GetBucketLocation |
| Returns an empty region |
Bucket naming rules
- 3 to 63 characters
- Lowercase letters, digits and hyphens
- No uppercase letters, underscores or spaces
- Not formatted as an IP address, such as
192.168.5.4 - Unique within your account, not across all customers
The chili Console allows exactly lowercase letters, digits and hyphens. Follow the same rule when you use the API. Periods are allowed by the S3 standard, but cause certificate errors with virtual-hosted style.
Operations in detail
ListBuckets
GET / HTTP/1.1
Host: s3-ch-east.chilistorage.comReturns the buckets of your account with name and creation date.
<ListAllMyBucketsResult>
<Owner>
<ID>...</ID>
<DisplayName>...</DisplayName>
</Owner>
<Buckets>
<Bucket>
<Name>my-bucket</Name>
<CreationDate>2026-11-02T08:14:31.000Z</CreationDate>
</Bucket>
</Buckets>
</ListAllMyBucketsResult>aws s3api list-buckets --endpoint-url https://s3-ch-east.chilistorage.comCreateBucket
The recommended way is the chili Console. Object Lock, geo-redundancy and the deletion key can only be chosen there, and only at creation. A bucket created through the API has none of these options, and you cannot add them later. For completeness, here is the API variant:
PUT /my-bucket HTTP/1.1
Host: s3-ch-east.chilistorage.com
Content-Length: 0Element | Note |
|---|---|
Bucket name in the path | See the rules above |
| Ignored by chili; you can omit the body |
aws s3api create-bucket --bucket my-bucket \
--endpoint-url https://s3-ch-east.chilistorage.comOn success chili returns HTTP 200 with a Location header. If the name already exists in your account, you get an error such as BucketAlreadyExists.
DeleteBucket
DELETE /my-bucket HTTP/1.1
Host: s3-ch-east.chilistorage.comOnly an empty bucket can be deleted. Empty means: no objects, no older object versions and no delete markers. Otherwise chili returns 409 BucketNotEmpty. Object versions under Object Lock can only be deleted after their retention expires; until then the bucket also stays.
Delete buckets with a deletion key in the chili Console. A plain DeleteBucket through the API is not enough for them.
aws s3api delete-bucket --bucket my-bucket \
--endpoint-url https://s3-ch-east.chilistorage.comThe request succeeded if it returns HTTP 204.
HeadBucket
HEAD /my-bucket HTTP/1.1
Host: s3-ch-east.chilistorage.comChecks whether the bucket exists and whether the key may access it. The response has no body.
Status | Meaning |
|---|---|
| Bucket exists, access allowed |
| Bucket exists, access not allowed |
| Bucket does not exist |
aws s3api head-bucket --bucket my-bucket \
--endpoint-url https://s3-ch-east.chilistorage.comListObjects and ListObjectsV2
GET /my-bucket?list-type=2&prefix=backup/2026/&delimiter=/&max-keys=100 HTTP/1.1
Host: s3-ch-east.chilistorage.comLists the objects in a bucket, sorted alphabetically by key, at most 1000 per response. Use version 2 (list-type=2) for new applications.
Parameter | Version | Meaning |
|---|---|---|
| 1 and 2 | Only keys that start with this prefix |
| 1 and 2 | Groups keys up to the next delimiter into |
| 1 and 2 | At most this many entries, default and maximum 1000 |
| 1 and 2 |
|
| 1 | Continue the listing after this key |
| 2 | Token from |
| 2 | On the first call, start after this key |
| 2 |
|
If IsTruncated is true, more entries exist. Continue with the token from NextContinuationToken.
<ListBucketResult>
<Name>my-bucket</Name>
<Prefix>backup/2026/</Prefix>
<Delimiter>/</Delimiter>
<MaxKeys>100</MaxKeys>
<KeyCount>2</KeyCount>
<IsTruncated>false</IsTruncated>
<Contents>
<Key>backup/2026/index.json</Key>
<LastModified>2026-11-20T22:01:12.000Z</LastModified>
<ETag>"9b2cf535f27731c974343645a3985328"</ETag>
<Size>4182</Size>
<StorageClass>STANDARD</StorageClass>
</Contents>
<CommonPrefixes>
<Prefix>backup/2026/11/</Prefix>
</CommonPrefixes>
</ListBucketResult>aws s3api list-objects-v2 --bucket my-bucket \
--prefix backup/2026/ --delimiter / \
--endpoint-url https://s3-ch-east.chilistorage.comThe AWS CLI follows the continuation-token automatically and prints all pages. Use --max-items to limit the output.
GetBucketLocation
GET /my-bucket?location HTTP/1.1
Host: s3-ch-east.chilistorage.comchili returns an empty LocationConstraint. Do not rely on this value in your application; set the region ch-east explicitly in your configuration instead.
<LocationConstraint/>aws s3api get-bucket-location --bucket my-bucket \
--endpoint-url https://s3-ch-east.chilistorage.comNext
- chili Console: create buckets with Object Lock, geo-redundancy and deletion key
- Objects: object operations
- Versioning: versions and delete markers
- Object Lock (API): retention and legal hold
- Limits: limits and naming rules