6.5 HP StoreAll OS User Guide

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 70 0 70 0 0 195 0 --:--:-- --:--:-- --:--:-- 0
Viewing the contents of a container
To view the contents of a container:
curl -i <ENDPOINT>/<CONTAINER_NAME> -H
"X-AUTH-Token:<AUTHENTICATION_TOKEN>"
Sample command:
curl -i
http://10.10.104.116:8888/v1/AUTH_7b9a902423a582c9eda266dcf3ad6974a2b98e4b21ea7c9e1e8d38f76afdf1b4/containerQ
-H "X-AUTH-Token:0258c46f66e84161aa4f258ffa6fb188"
The output from the previous example displays the contents of container1.
Sample output:
Content-Length: 25
X-Container-Object-Count: 3
Accept-Ranges: bytes
X-Timestamp: 1382117713.35947
X-Container-Bytes-Used: 1178701824
Content-Type: text/plain; charset=utf-8
Date: Fri, 18 Oct 2013 17:45:14 GMT
file100K
file100M
file1G
Deleting an object from a container
To delete an object from a container:
curl -X DELETE -i -H "X-Auth-Token:<AUTHENTICATION_TOKEN>"
<ENDPOINT>/<CONTAINER_NAME>/<FILE_TO_DELETE>
Sample command:
curl -X DELETE -i -H "X-Auth-Token:e1c7e33615bd4fa3b345ea996b05c786"
http://10.10.104.114:8888/v1/AUTH_7b9a902423a582c9eda266dcf3ad6974a2b98e4b21ea7c9e1e8d38f76afdf1b4/container1/file4G
Sample output:
HTTP/1.1 204 No Content
Content-Length: 0
Content-Type: text/html; charset=UTF-8
Date: Tue, 15 Oct 2013 21:11:24 GMT
Deleting a container
You must first delete the contents of a container before deleting the container itself.
After you delete all the contents in a container, enter the following cURL command:
curl -i <ENDPOINT>/<CONTAINER_TO_DELETE> -X DELETE -H
"<AUTHENTICATION_TOKEN>"
Sample command:
curl -i -X DELETE -H "X-Auth-Token: 01e7c2672354417cafb7416bca2f848a"
http://10.21.12.24:8888/v1/AUTH_7b9a902423a582c9eda266dcf3ad69740455f3e86019620d40d7a3adcc3b2dc4/container1
Sample output:
Using cURL commands for managing Object Store 149