Get bucket location

To list a bucket's location you make a GET request that is scoped to a bucket and you use the location query string parameter. The location value is returned in an XML document in the response body.

Query string parameters

Parameter Description Required
location You can use this to display the location of the bucket. For a list of possible locations, see Bucket Locations. No

Request headers

See common request headers.

Request body elements

This request does not include an XML document in the request body.

Request syntax

The following syntax applies to GET Bucket requests that use the location query string parameter.

GET /?location HTTP/1.1
Host: <bucket>.storage.googleapis.com
Date: <date>
Content-Length: <request body length>
Authorization: <authentication string>

Response headers

The request can return a variety of response headers depending on the request headers you use.

Response body elements

The following response body elements are applicable only if you use the location query string parameter to display the bucket's location constraint.

Element Description
LocationConstraint The location of the bucket. For a list of locations, see Bucket Locations.
此页内容是否有用?请给出您的反馈和评价:

发送以下问题的反馈:

此网页
Cloud Storage
需要帮助?请访问我们的支持页面