GET Bucket Location¶
The GET Bucket Location operation uses the location subresource to return a bucket’s location. The bucket’s location is set up using the LocationConstraint request parameter in a PUT Bucket request. Refer to PUT Bucket.
Note
The possible options for a LocationConstraint are configured in the env_s3 setting of the S3 configuration.
Requests¶
Syntax¶
GET /?location HTTP/1.1
Host: {{BucketName}}.{{StorageService}}.com
Date: {{date}}
Authorization: {{authenticationInformation}}
Parameters¶
The GET Bucket Location operation does not use request parameters.
Headers¶
The GET Bucket Location operation uses only request headers that are common to all operations (refer to Common Request Headers).
Elements¶
The GET Bucket Location operation does not use request elements.
Responses¶
Headers¶
The GET Bucket Location operation uses only response headers that are common to all operations (refer to Common Response Headers).
Elements¶
The GET Bucket Location operation can return the following XML elements in the response:
Element | Type | Description |
---|---|---|
LocationConstraint |
String | Specifies the location of the bucket. The LocationConstraint parameter is configured in the env_s3 setting of the S3 configuration. |