How to find the proxy ip and port, Creating containers, Upload an object to a container – HP StoreAll Storage User Manual

Page 147: Posting metadata to an object

Advertising
background image

How to find the proxy IP and port

To generate a list of ports and to find the proxy IP, enter the following command:

ibrix_objectstore -l

The following is a sample output:

Creating containers

You must have administrative privileges to create a container.

IMPORTANT:

All administrators in a tenant have administrative privileges to access containers

created by other administrators in the same tenant. For example, if userSAM24 creates container1,
other administrators in the same tenant as userSAM24 could add or remove objects from container1
as well as delete container1.

To create a container:

curl -X PUT -i -H "X-Auth-Token:<AUTHENTICATION TOKEN>" <ENDPOINT>/<NAME

OF NEW CONTAINER>

Sample command:

curl -X PUT -i -H "X-Auth-Token:7864e40dd3ee4910934b73d0a4a399ac"
http://15.213.70.158:8888/v1/AUTH_7b9a902423a582c9eda266dcf3ad697420c1c3ff9429b1dfd255152f3bf2098f/cont1

Sample output:

HTTP/1.1 201 Created

Content-Length: 0

Content-Type: text/html; charset=UTF-8

Date: Wed, 11 Sep 2013 20:56:22 GMT

Upload an object to a container

IMPORTANT:

Objects cannot be more than 5 GB. Objects larger than 5 GB must be segmented

and then re-concatenated together.

To upload an object to a container:

curl -X PUT -i -H "X-Auth-Token:<AUTHENTICATION TOKEN>" -T

"<Item_to_be_created>" <ENDPOINT>/<CONTAINER_NAME>/<OBJECT_NAME>

Sample command:

# curl -X PUT -i -H "X-Auth-Token: 441847c0e2ef474abc7e78357edacf7f" -T getput.py
http://10.13.15.72:8888/v1/AUTH_7b9a902423a582c9eda266dcf3ad69740455f3e86019620d40d7a3adcc3b2dc4/Files/getput.py

Sample output:

HTTP/1.1 201 Created
Last-Modified: Tue, 26 Jun 2012 22:31:15 GMT
Content-Length: 0
Etag: 6f3ddba29c846c2b3fb3fad2d18ace83
Content-Type: text/html; charset=UTF-8
Date: Tue, 26 Jun 2012 22:31:16 GMT

Posting metadata to an object

Custom metadata can be tagged to the objects in a container.

Using cURL commands for managing Object Store

147

Advertising