FDS Restful API

ListBuckets related api supported by FDS

Version: 1.0.0

/


GET

Summary: get endpoint according to area code and back-end service

Description: recommend to get through cdn

Parameters

Name Located in Description Required Schema
endpoint query Indicates that this request is used for getting endpoint Yes string
region query area code Yes string
service query back-end services Yes string

Responses

Code Description Schema
200 endpoint GetEndpointResult
400 error info

Models


GetEndpointResult

Name Type Description Required
EndpointResult string No

command line examples

curl -v -X 'GET' 'http://cdn.awsbj0.fds.api.mi-img.com?endpoint&region=sg&service=aws'
* Rebuilt URL to: http://cdn.awsbj0.fds.api.mi-img.com/?endpoint&region=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&region=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"

results matching ""

    No results matching ""