GET Location

Last updated:2021-04-28 11:03:07

Description

This GET operation will use the ‘location’ resource to return the region of user space . The user uses’ LocationConstraint ‘in the’ PUT Bucket 'request to set the region of user space. For more information, please click PUT Bucket.

Using this interface requires the user to be the owner of this space.

Request

Grammar

GET /?location HTTP/1.1
Host: {BucketName}.{endpoint}
Date: {date}
Authorization: authorization string

Note:

Request parameters

The interface does not use request parameters.

Request header

This interface only uses common request headers. For more information, please click Public request headers.

Request content

The interface does not use the requested content.

Response

Response header

This interface can use all common response headers. For more information, please click Public response headers.

Response content

Name Description
LocationConstraint Specify the region where the user space will be placed.
Type: String
Valid value: [ BEIJING ; SHANGHAI ; HONGKONG ]

Special errors

The interface does not return any special errors.

Example

Request example

GET /?location HTTP/1.1
Host: ks3-example.ks3-cn-beijing.ksyun.com
Date: Wed, 01 Mar 2010 12:00:00 GMT
Authorization: authorization string

Response example

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

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈