HP StoreAll Storage User Manual

Page 206

Advertising
background image

NOTE:

Enter the following 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

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/qa1.hp.com%5Cadministrator//

activedomaincontainer -u qa1.hp.com\\administrator: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

206 HTTP-REST API object mode shares

Advertising