1.28.10 get-endpoint

优质
小牛编辑
112浏览
2023-12-01

ListBuckets related api supported by FDS

Version: 1.0.0

/

GET

Summary:

根据地区码和后端服务获取endpoint

Description:

建议通过cdn获取

Parameters
NameLocated inDescriptionRequiredSchema
endpointquery表明此请求用于获取endpointYesstring
regionquery地区码Yesstring
servicequery后端服务Yesstring
Responses
CodeDescriptionSchema
200endpointGetEndpointResult
400错误信息

Models

GetEndpointResult

NameTypeDescriptionRequired
EndpointResultstringNo

命令行示例

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"