FDS Restful API
ListBuckets related api supported by FDS
Version: 1.0.0
/
GET
Summary:
根据地区码和后端服务获取endpoint
Description:
建议通过cdn获取
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
endpoint | query | 表明此请求用于获取endpoint | Yes | string |
region | query | 地区码 | Yes | string |
service | query | 后端服务 | Yes | string |
Responses
Code | Description | Schema |
---|---|---|
200 | endpoint | GetEndpointResult |
400 | 错误信息 |
Models
GetEndpointResult
Name | Type | Description | Required |
---|---|---|---|
EndpointResult | string | No |
命令行示例
curl -v -X 'GET' 'http://cdn.awsbj0.fds.api.mi-img.com?endpoint®ion=sg&service=aws'
* Rebuilt URL to: http://cdn.awsbj0.fds.api.mi-img.com/?endpoint®ion=sg&service=aws
* Trying 124.164.9.14...
* Connected to cdn.awsbj0.fds.api.mi-img.com (124.164.9.14) port 80 (#0)
> GET /?endpoint®ion=sg&service=aws HTTP/1.1
> Host: cdn.awsbj0.fds.api.mi-img.com
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Tue, 17 Oct 2017 13:22:44 GMT
< Access-Control-Allow-Credentials: true
< Access-Control-Allow-Headers: DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,Content-MD5
< Access-Control-Allow-Methods: GET, POST, PUT, HEAD, DELETE, OPTIONS
< Access-Control-Expose-Headers: content-md5, upload-time, x-xiaomi-meta-content-length
< Access-Control-Max-Age: 1728000
< Content-Type: application/json
< Server: Tengine
< Content-Length: 28
< X-Via: 1.1 wj31:5 (Cdn Cache Server V2.0), 1.1 zhouwtong157:4 (Cdn Cache Server V2.0), 1.1 angtong167:4 (Cdn Cache Server V2.0)
< Connection: keep-alive
<
* Connection #0 to host cdn.awsbj0.fds.api.mi-img.com left intact
"awssgp0.fds.api.xiaomi.com"