获取地域信息
功能说明
查询一个 Bucket 所在 region 的信息。
方法原型
func (s *BucketService) GetLocation(ctx context.Context) (*BucketGetLocationResult, *Response, error)
请求示例
v, resp, err := client.Bucket.GetLocation(context.Background())
返回结果说明
type BucketGetLocationResult struct {
Location string
}
{
'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'
}
参数名称 | 参数描述 | 类型 |
---|---|---|
Location | Bucket 所在地域的信息 | string |