Home > openstack, swift > Set Metadata with Object in Object Storage

Set Metadata with Object in Object Storage

 

Set Metadata:

curl -X POST -H “X-Auth-Token:$TOKEN” -H “X-Object-Meta-jsonpolicy:{policy value}” $STORAGE_URL/bar/foobar.txt

Retrive Metadata:

For some reasons, I cannot retrieve metadata with curl command. So, lets use swift command:

swift bar foobar.txt

Setting meta data with Swift Object

 

NOTE:

Value of a custom meta data does not take a new line. Value breaks at new line.

Advertisements
Categories: openstack, swift Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: