Graphon API

S3 · Buckets

GetBucketLocation

GET/{bucket}?location

Returns the signing region of a bucket.

SDKs call this operation to find the region to sign with. The answer is always us-east-1. Get a bucket returns the provider and location that hold the bytes.

View as Markdown
Role
Viewer or higher
Support
Supported
  • Returns us-east-1, the signing region. The JSON API reports the real location.

Path parameters

bucketstringrequired

The bucket name.

Query parameters

locationflagrequired

Selects this operation. Send it with no value.

Headers

The workspace ID that must own the bucket. Another owner returns 403 AccessDenied.

Responses

200OK

The signing region.

application/xml

LocationConstraintstringrequired

Always us-east-1.

Errors

Select an error in the response example to see its XML body. Any request can also get the common errors, such as SignatureDoesNotMatch.

404NoSuchBucket

No bucket has this name, or the bucket was deleted.

What to do: Check the bucket name. ListBuckets shows the buckets of the workspace.

403AccessDenied

The key does not have the role for this operation, or the bucket is in another workspace.

What to do: Use a key of the workspace that owns the bucket, with the role above.

Was this page helpful?