FDS Restful API

Head object related api supported by FDS

Version: 1.0.0

/{bucketname}/{objectname}


command line examples

curl -v -X 'HEAD' 'http://cnbj0.fds.api.xiaomi.com/fds-demo/tests/test.txt' \                                                                                                           master 1488271681
    -H 'authorization: Galaxy-V2 54xxx45:ADxxxU=' \
    -H 'date: Tue, 28 Feb 2017 08:47:46 GMT'
* Hostname was NOT found in DNS cache
*   Trying 111.206.200.99...
* Connected to cnbj0.fds.api.xiaomi.com (111.206.200.99) port 80 (#0)
> HEAD /fds-demo/tests/test.txt HTTP/1.1
> User-Agent: curl/7.35.0
> Host: cnbj0.fds.api.xiaomi.com
> Accept: */*
> authorization: Galaxy-V2 54xxx45:ADxxxU=
> date: Tue, 28 Feb 2017 08:47:46 GMT
> 
< HTTP/1.1 200 OK
* Server Tengine is not blacklisted
< Server: Tengine
< Date: Tue, 28 Feb 2017 08:48:35 GMT
< Content-Type: application/octet-stream
< Content-Length: 178
< Connection: keep-alive
< cache-control: no-store
< x-xiaomi-meta-content-length: 10245765
< last-modified: Tue, 28 Feb 2017 03:20:07 GMT
< upload-time: 1488252008440
< x-xiaomi-meta-acl: PUBLIC_READ
< content-md5: c4fa9c26ecbabf5a4560d646b302c5ef
< Access-Control-Allow-Credentials: true
< Access-Control-Max-Age: 1728000
< Access-Control-Allow-Methods: GET, POST, PUT, HEAD, DELETE, OPTIONS
< 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-Expose-Headers: content-md5, upload-time, x-xiaomi-meta-content-length
# object not exist
curl -v -X 'HEAD' 'http://cnbj0.fds.api.xiaomi.com/fds-demo/not-exist' \
    -H 'authorization: Galaxy-V2 54xxx045:OZxxxw=' \
    -H 'date: Tue, 28 Feb 2017 08:49:13 GMT'
* Hostname was NOT found in DNS cache
*   Trying 111.206.200.99...
* Connected to cnbj0.fds.api.xiaomi.com (111.206.200.99) port 80 (#0)
> HEAD /fds-demo/not-exist HTTP/1.1
> User-Agent: curl/7.35.0
> Host: cnbj0.fds.api.xiaomi.com
> Accept: */*
> authorization: Galaxy-V2 54xxx045:OZxxxw=
> date: Tue, 28 Feb 2017 08:49:13 GMT
> 
< HTTP/1.1 404 Not Found
* Server Tengine is not blacklisted
< Server: Tengine
< Date: Tue, 28 Feb 2017 08:50:14 GMT
< Content-Type: application/json
< Content-Length: 0
< Connection: keep-alive
< Access-Control-Allow-Origin: *

results matching ""

    No results matching ""