Docs

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

GET /

Lists the buckets of the account

CreateBucket

PUT /{bucket}

Recommended: chili Console

DeleteBucket

DELETE /{bucket}

Only empty buckets without a deletion key

HeadBucket

HEAD /{bucket}

Checks existence and access

ListObjects

GET /{bucket}

Version 1, paging with marker

ListObjectsV2

GET /{bucket}?list-type=2

Version 2, paging with continuation-token

GetBucketLocation

GET /{bucket}?location

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.com

Returns 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.com

CreateBucket

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: 0

Element

Note

Bucket name in the path

See the rules above

CreateBucketConfiguration / LocationConstraint

Ignored by chili; you can omit the body

aws s3api create-bucket --bucket my-bucket \
  --endpoint-url https://s3-ch-east.chilistorage.com

On 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.com

Only 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.com

The request succeeded if it returns HTTP 204.

HeadBucket

HEAD /my-bucket HTTP/1.1
Host: s3-ch-east.chilistorage.com

Checks whether the bucket exists and whether the key may access it. The response has no body.

Status

Meaning

200

Bucket exists, access allowed

403

Bucket exists, access not allowed

404

Bucket does not exist

aws s3api head-bucket --bucket my-bucket \
  --endpoint-url https://s3-ch-east.chilistorage.com

ListObjects and ListObjectsV2

GET /my-bucket?list-type=2&prefix=backup/2026/&delimiter=/&max-keys=100 HTTP/1.1
Host: s3-ch-east.chilistorage.com

Lists 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

prefix

1 and 2

Only keys that start with this prefix

delimiter

1 and 2

Groups keys up to the next delimiter into CommonPrefixes, usually /

max-keys

1 and 2

At most this many entries, default and maximum 1000

encoding-type

1 and 2

url: keys in the response are URL-encoded, useful for special characters

marker

1

Continue the listing after this key

continuation-token

2

Token from NextContinuationToken of the previous response

start-after

2

On the first call, start after this key

fetch-owner

2

true includes the owner of each object

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.com

The 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.com

chili 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.com

Next