Configuring Tigris via the API - Tigris

Configuring Tigris via the API

I am attempting to set up and configure a bucket in Tigris using the API. I have a bucket created and am trying to curl it with this:

curl -f https://fly.storage.tigris.dev/mybucket.example.com \
  --aws-sigv4 \
  --user $AWS_ACCESS_KEY_ID:$AWS_SECRET_ACCESS_KEY \
  -X PATCH \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "x-amz-acl: public-read" \
  --data-raw '{"cache_control":"", "website":{"domain_name": "mybucket.example.com"}, "object_regions": "","additional_http_headers": ""}' \
  -i

However I get the following error from curl:

curl: (22) The requested URL returned error: 403
curl: (3) URL rejected: Port number was not a decimal number between 0 and 65535

I’ve replaced the credentials several times to ensure they are correct and they definitely have admin access to the bucket.

I’m also wondering if I can configure the shadow bucket options via the API, and if so, how?

Solution

You can use this data payload in the same API to configure shadow‑bucket.

--data-raw '{"shadow_bucket":{"access_key":"<access_key>","secret_key":"<access_secret>","region":"<some-region>","name":"<remote-bucket-name>","endpoint":"<https://remote-bucket.url>","write_through":<false>},