Talk:RO Northbound Interface
From OSM Public Wiki
Several entries on this page are not correct according to what we find in the code.
For example :
On the wiki
POST /openmano/{tenant_id}/instances/{instance_id}/action take an action over a scenario instance. Actions can be {start,pause,resume,shutoff,shutdown,forceOff,rebuild,reboot,console} Params: Content-type: application/yaml
In the code we cand read httpserver.py
@bottle.route(url_base + '/<tenant_id>/instances/<instance_id>/action', method='POST') def http_post_instance_scenario_action(tenant_id, instance_id): [...] #parse input data http_content,_ = format_in( instance_scenario_action_schema )
And then openmano_schemas.py
instance_scenario_action_schema = { "title":"instance scenario action information schema", "$schema": "http://json-schema.org/draft-04/schema#",
The documentation states that yaml is expected but the code seem to expect a json.
Same problem for openmano/{tenant_id}/instances