Ask Your Question
0

Which way to set custom metadata? [closed]

asked 2019-05-16 21:55:54 -0500

Quang Vu gravatar image

Hello everyone! I want to set custom metadata with command swift post 9331558060408 a.txt -H "X-Object-Quang-Vu: QuangVu" but when I check status of that object, nothing is displayed. Please explain me why? I think setting custom metadata is default, not middleware.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Bernd Bausch
close date 2019-05-19 18:42:15.249773

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-05-16 22:23:40 -0500

updated 2019-05-16 22:35:22 -0500

Your header is incorrect. It must have the form x-object-meta-yourkey: yourvalue; see the API reference.

Alternatively, try swift post -m.

edit flag offensive delete link more

Comments

thank you so much!

Quang Vu gravatar imageQuang Vu ( 2019-05-16 23:41:05 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-05-16 21:55:54 -0500

Seen: 18 times

Last updated: May 16