6.5 HP StoreAll OS User Guide

HTTP command:
PUT /<urlpath>/<account_name>/<container_name> HTTP/1.1
[Sync-Requested: 1]
CURL command (Enter on one line):
curl -X PUT http://<IP_address:port>/<urlpath>/<user_id>/<container_name> -u <user_name>:<password> [--header
Sync-Requested: 1]
You can use a number of different formats for Active Directory users:
NOTE: Enter commands on one line.
curl -X PUT http://<IP_address:port/<urlpath>/<account_name>/
<container_name> -u <username>@<domain_name>:
<password> --header "x-ibrix-addomain:<domain_name>"
You can provide the <domain_name> and <account_name> three different ways in the
curl command:
In the first format, double backslashes are used to preserve (escape) the backslash
separator between username and domain name:
curl -X PUT http://<IP_address:port>/<urlpath>/<domain_name>
\\<account_name>/<container_name> -u <domain_name>
\\<username>:<password>
As shown in the following example:
curl -X PUT http://192.168.2.2/obj/qa1\\administrator
activedomaincontainer -u qa1\\administrator:password12
In the second format, double quotes are used to preserve the backslash:
curl -X PUT "http://<IP_address:port>/<urlpath>/<domain_name>
\<account_name>/<container_name>" -u "<domain_name>
\<username>:<password>"
In the third format, the %5C URL encoding of the backslash is used in the URL, but it cannot
be used in the -u user parameter:
curl -X PUT http://<IP_address:port>/<urlpath>/<domain_name>
%5C<account_name>/<container_name> -u <domain_name>
\\<username>:<password>
As shown in the following example:
curl -X PUT http://192.168.48.204/obj/administrator
/activedomaincontainer -u administrator@qa1.hp.com
:mypassword
List Objects
Type of Request: Container services
Description: Lists the objects in a container.
HTTP command:
GET /<urlpath>/<account_name>/<container_name> HTTP/1.1
CURL command (Enter on one line):
curl http://<IP_address:port>/<urlpath>/<account_name>/
<container name> -u <user_name>:<password>
The list of all objects in the container will be returned in JSON format.
214 HTTP-REST API object mode shares