Ask Your Question
0

os api 1.1 metadata incorrect serialization in json

asked 2011-04-13 17:28:19 -0500

It is not understandable why metadata is serialized on get operation in such string { "metadata" : { "values" : { "Server Label" : "Web Head 1", } } } on update in { "metadata" : { "Server Label" : "Web Head 2" } } and one item is serialized { "meta" : { "Server Label" : "Web Head 1" } }

Is it final version of json rendering format for metadata?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2011-04-14 01:12:16 -0500

Hi Yuri,

The metadata JSON is roughly based on the beta draft of the Openstack API spec. For the most part the spec was followed with the exception of "values" (which we call collections). I don't think we implemented any of the collections json for the cactus release. To be honest as we got into the implementation I wasn't a big fan of the 'meta' vs. 'metadata' differences in the draft specification.

The beta draft of the spec is available here:

http://docs.openstack.org/openstack-compute/developer/cs-devguide.pdf (http://docs.openstack.org/openstack-c...)

Additionally we do plan on discussing some of the formatting issues at the upcoming dev conference.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-04-13 17:28:19 -0500

Seen: 6 times

Last updated: Apr 14 '11