返回存储桶所在的区域。
GET /?location HTTP/1.1
Host: Bucket.s3-us-east-1.ossfiles.com
名称 | 描述 | 类型 |
---|---|---|
Bucket | 存储桶名称 | 字符串 |
该请求没有请求消息头。
该请求没有请求正文。
该请求没有请求元素。
HTTP/1.1 200
<?xml version="1.0" encoding="UTF-8"?>
<LocationConstraint>
<LocationConstraint>string</LocationConstraint>
</LocationConstraint>
名称 | 描述 | 类型 |
---|---|---|
LocationConstraint | 桶位置 | 字符串 |
该请求没有响应消息头。
请求示例
GET /?location HTTP/1.1
Authorization: AWS4-HMAC-SHA256 Credential=2421a691b4ed625de19f6f92677b6459/20230116/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=0e5f120dcd49f2ba5d90e0242b5278acda3d4ea2a63e8077bd2cf4874263e56c
Content-length: 0
Host: bucket.s3-us-east-1.ossfiles.com
X-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-amz-date: 20230116T173114Z
返回示例
HTTP/1.1 200 OK
Content-length: 137
Content-type: application/xml
Date: Mon, 16 Jan 2023 17:31:16 GMT
x-amz-id-2: a91bc0757cc34fe38cb60a90d4211029
x-amz-request-id: b8f87a5ce3d34d0f9db9ac0d562d82e2
<?xml version="1.0" encoding="UTF-8"?>
<LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/">us-east-1</LocationConstraint>