6.5 HP StoreAll OS User Guide

1. Enter the following command on the StoreAll server:
echo -n '<object_id>' | openssl dgst -sha1
For example, if your object identifier string is mydir1/mysubdir2/myobj.xyz, the command
would be the following:
echo -n 'mydir1/mysubdir2/myobj.xyz' | openssl dgst -sha1
The SHA-1 hash code for the string will be returned, for example:
c610260e3075673aadec3afc4983101449db2f05. This hash name is the name of the
file on the StoreAll file system that contains the object contents.
NOTE: If you are not sure of the object ID string of the stored object you wish to find, view
the contents of the container, as described in “Viewing the contents of a container (page 209).
The object string is the entire string between the double quotes for each object listed, as shown
in the following image:
2. To determine the names of the two directory levels within the container where this object is
stored, calculate the hex value of the 10 least significant bits of the returned hash code, then
the next 10 least significant bits. In the above example, these values are 33a and 2ca, in
lowercase letters. The first hexadecimal value is the second-level directory name. The second
hexadecimal value is the first-level directory name. So, the above file will be located at the
path:
<Path of object mode REST API share>/<user ID>/<container
name>/2ca/33a
Commands for object mode
The following sections provides the commands for object mode HTTP REST API shares. Enter the
commands on one line, except when otherwise specified.
List Containers
Type of Request: Account Services
Description: Returns the list of containers for a user account.
HTTP command:
GET /<urlpath>/<account_name> HTTP/1.1
CURL command (Enter on one line):
curl http://<IP_address:port>/<urlpath>/
<user_id> -u <user_name>:<password>
Create Container
Type of Request: Container services
Description: Creates a container. See “Terminology for StoreAll REST API object mode (page 203)
for information in regards to the naming requirements.
Commands for object mode 213