6.3 HP StoreAll Storage File System User Guide (TA768-96093, June 2013)

3. Add items to your newly created container.
NOTE: Enter the following commands on one line.
To create an empty object in your new container, enter the following command:
NOTE: Object names support UTF-8.
curl -X PUT http://<host_IP_address:port>/<urlpath>/
<account_name>/<container_name>/<object_id> --user
<username>:<password>
The object ID can be any string uniquely identifying the object in this container. See
Object ID in Table 15 (page 138) for details.
An example of the command:
curl -X PUT http://192.168.2.2/obj/localuser1/
container-a/mydir1/mysubdir2/myobj.xyz -u localuser1:mypassword
To upload an object to your new container, enter the following command:
curl -T <local_pathname> http://<IP_address:port>
/<urlpath>/<account_name>/<container_name>/
<object_id> -u <username>:<password>
For example:
curl -T C:\temp\myLocalFile.txt http://192.168.2.2
/obj/localuser1/container-a/mydir1/mysubdir2/
myobj.xyz -u localuser1:mypassword
In this example, the user installed the open source cURL program on their Windows
computer.
The subdirectories /mydir1/mysubdir2 provided as an example in the command are
the virtual location of the myobj2.xyz file. The file path for the uploaded file is converted
into the hash name for the file object. If you used the CLI to traversed the directory structure
of the container, you would find myobj2.xyz stored under the first and second level
hash directories under the container instead of under the subdirectories specified during
the upload.
HTTP version of the command
PUT /<urlpath>/<account_name>/<container_name>/
<object_id> HTTP/1.1
4. View the list of objects in the container. “Viewing the contents of a container” (page 144).
142 HTTP-REST API object mode shares