ooi team mailing list archive
-
ooi team
-
Mailing list archive
-
Message #00003
JSON Rendering
Dear all,
I'm working in the new OCCI feature to manage Security groups. The
specification of this new resource requires JSON rendering, to manage the
security rules [1]. I have tried to make it by using text protocol, but
the json attribute arrives to the server without quotes by using [2].
I would like to know if this format is implemented in OOI, or you plan to
include it, or there is any way to avoid to use it by using any other
supported rendering.
[1] "attributes":
{"occi.core.title"="OCCI_TEST", "occi.securitygroup.rules": [{"ipversion":
"IPv4", "protocol": "tcp", "range": "11.0.0.0/32", "type": "inbound",
"port": 443}, {"ipversion": "IPv4", "protocol": "udp", "range": "11.0.0.0/24",
"type": "outbound", "port": "8000-9000"}]}
[2] 'X-OCCI-Attribute: "occi.core.title"="OCCI_TEST",
"occi.securitygroup.rules"="[{'ipversion': 'IPv4', 'protocol': 'tcp',
'range': '11.0.0.0/32', 'type': 'inbound', 'port': '443'}, {'ipversion':
'IPv4', 'protocol': 'udp', 'range': '11.0.0.0/24', 'type': 'outbound',
'port': '8000-9000'}]"
I guess, somebody have dealt with it at some point.
Any feedback is welcome,
All the best,
Thank you so much
Jorge Sevilla,
--
Dr. Jorge Sevilla Cedillo
LIP http://www.lip.pt
Av. Elias Garcia, 14-1
1000-149
Lisboa Portugal
Follow ups