GET Bucket Location

After being granted the READ permission for a bucket, you can use this operation to obtain the location of the bucket.

Request Syntax

GET /?location HTTP/1.1
Host: bucketname.obs.cn-north-1.myhwclouds.com
Date: date
Authorization: authorization

Request Parameters

This request contains no parameter.

Request Headers

This request uses common headers. For details, see Common Request Headers.

Request Elements

This request contains no element.

Response Syntax

HTTP/1.1 status_code
Date: date
Content-Type: type
Content-Length: length

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<CreateBucketConfiguration xmlns="http://obs.cn-north-1.myhwclouds.com/doc/2015-06-30/">
<LocationConstraint>Location</LocationConstraint>
</CreateBucketConfiguration>

Response Headers

This response uses common headers. For details, see Common Response Headers.

Response Elements

This response contains elements to describe the bucket region. Common Response Headers describes the elements.

Table 1 Response elements

Element

Description

CreateBucketConfiguration

Indicates the request result that saves bucket location, including information about bucket location.

Type: XML

LocationConstraint

Indicates the region where the bucket resides.

Type: string

Error Responses

No special error responses are returned. For details about error responses, see Table 1.

Registration