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

As shown in the following example:
curl -X PUT http://192.168.2.2/obj/qa1\\administrator/
activedomaincontainer -u qa1\\administrator
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
HTTP version of the command
NOTE: Enter the following command on one line.
PUT /<urlpath>/<domain_name>%5C<account_name>/
<container_name> HTTP/1.1
The %5C is the URL encoding for a backslash.
2. Set the permissions of the container.
A container is always created with read-write permission by the account user and no permission
for any other user. This is represented in UNIX octal permissions as 700 (a digit for user,
group, and other permissions). These permissions can be changed by the account user to
allow other users to read and write objects in the container. Change the "group" permission
of the container to allow other users in the same default group as the account user to read
and/or write objects. Change the "other" permission to allow any user to read and/or write
objects. The execute bit must be set to allow read or write access. The read and write bits can
be set as needed.
The permissions can be entered as an integer in standard UNIX octal permissions format,
between the range 0 to 777. A two-digit permission, such as 77, would be considered to be
077, as single-digit permission, such as 7, would be considered to mean 007.
NOTE: Enter the following commands on one line.
curl -X PUT http://<host_IP_address:port>/<urlpath>
/<user_id>/<container_name>?permission -u <username>
:<password> --header "x-ibrix-permission:<permission>"
In this instance <permission> is the integer permission value in octal, for example 770.
HTTP version of the command
PUT /<urlpath>/<account_name>/<container_name>?permission HTTP/1.1
x-ibrix-permission:<permission>
Tutorial for using the HTTP StoreAll REST API object mode 141