获取地域信息

功能说明

查询一个 Bucket 所在 region 的信息。

方法原型

  1. func (s *BucketService) GetLocation(ctx context.Context) (*BucketGetLocationResult, *Response, error)

请求示例

  1. v, resp, err := client.Bucket.GetLocation(context.Background())

返回结果说明

  1. type BucketGetLocationResult struct {
  2. Location string
  3. }
  1. {
  2. 'Location': 'ap-beijing-1'|'ap-beijing'|'ap-shanghai'|'ap-guangzhou'|'ap-chengdu'|'ap-chongqing'|'ap-singapore'|'ap-hongkong'|'na-toronto'|'eu-frankfurt'|'ap-mumbai'|'ap-seoul'|'na-siliconvalley'|'na-ashburn'
  3. }
参数名称参数描述类型
LocationBucket 所在地域的信息string