metadata - Cannot set more than one Meta data with OpenStack Swift Object -
I am trying to set the metadata with an object stored in Swift Container. I am using the following command (Note that my container is' container 1 'and the object is' employee .json':
curl -x post-h "x-orth-token: $ token" - h 'x -Abject-Meta-Metadata1: Value '$ STORAGE_URL / container1 / employee.json This works fine with a metadata. And whenever I'm trying to set more than one metadata, to issue several curl commands, only the last metadata value is actually set.
I think there should be no limit That you can only set one metadata for a quick object. Am I doing something wrong?
FYI: I am using OpenStacks Swift's Havana release.
Thank you.
I think, I have understood it ... It is my fault that I have not read the document honestly.
It says [1], "A post request will remove all existing metadata with the last post / post."
So, I tried to do it and it worked Done ...
curl -x post-h "x-aeth-token: $ token" -h 'x-object-meta-p1: [p1]' -h ' X Object-M eta-P2: [P1] '$ STORAGE_URL / container1 / employee Jason Here, instead of two post requests, I have now set up multiple metadata in a single post request.
Again, thanks.
Ref:
-
Comments
Post a Comment