GET Bucket Location

A GET location request operation using a bucket URI lists the location constraint of the bucket.

Example

This example lists the bucket location constraint of the quotes bucket.

Sample Request

GET /?location HTTP/1.1
Host: quotes.s3.amazonaws.com
Date: Tue, 09 Oct 2007 20:26:04 +0000
Authorization: AWS 1ATXQ3HHA59CYF1CVS02:JUtd9kkJFjbKbkP9f6T/tAxozYY=

Sample Response

<?xml version="1.0" encoding="UTF-8"?>
<LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/">EU</LocationConstraint>

There are no request parameters for the GET location constraint request operation.

To view the location constraint of a bucket, you must be the bucket owner.