beautypg.com

List objects – HP StoreAll Storage User Manual

Page 214

background image

HTTP command:

PUT /// HTTP/1.1
[“Sync-Requested: 1”]

CURL command (Enter on one line):

curl -X PUT http:///// -u : [--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://///

-u @:

--header "x-ibrix-addomain:"

You can provide the and 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:////

\\/ -u

\\:

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:////

\/" -u "

\:"

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:////

%5C/ -u

\\:

As shown in the following example:

curl -X PUT http://192.168.48.204/obj/administrator

/activedomaincontainer -u [email protected]

:mypassword

List Objects

Type of Request: Container services

Description: Lists the objects in a container.

HTTP command:

GET /// HTTP/1.1

CURL command (Enter on one line):

curl http://///

-u :

The list of all objects in the container will be returned in JSON format.

214

HTTP-REST API object mode shares