In http://developer.openstack.org/api-ref-networking-v2.html, POST: /v2.0/floatingips
following contents need to be fixed in "floatingIP".
---------------------------------------------------------------
1. "status" does not exist in Response parameters matrix.
-> Insert following column:
Parameter: "status"
Style: plain
Type: xsd:string
Description: "The floatingip status."
2. Due to 1., "status" does not exist in JSON parameters example.
-> Insert following parameter into JSON parameter:
"status": "ACTIVE",
Also, format is better to match the Response parameters.
3. "id" is unnecessary in Request parameter matrix.
4. In response paramaters "id" needs to be changed to "router_id"
5. Due to 4., in response paramater "id" should be added:
-> Insert following column:
Parameter: "id"
Style: plain
Type: csapi:uuid
Description: "The floatingip ID."
---------------------------------------------------------------
[current execution result]
$ curl -i -X POST -H "content-type:application/json" -d '{"floatingip": {"floating_network_id": "9ee8cf55-ffc0-42dc-a6f8-3f6ef6e18be6", "port_id": "4a1e1bd7-8df9-45db-aa46-d7de0f2f2269"}}' -H "x-auth-token:$TOKEN" http://
192.168.122.96:9696/v2.0/floatingips
HTTP/1.1 201 Created
Content-Type: application/json; charset=UTF-8
Content-Length: 371
X-Openstack-Request-Id: req-0d420cec-0192-4b4c-8eed-9781d6bdc127
Date: Tue, 03 Mar 2015 14:53:37 GMT
{"floatingip": {"floating_network_id": "9ee8cf55-ffc0-42dc-a6f8-3f6ef6e18be6", "router_id": "dcca90a8-e627-49c7-9d68-6461925d28b2", "fixed_ip_address": "192.168.12.1", "floating_ip_address": "192.168.12.3", "tenant_id": "f592c903fa8a492db8cf784ecb1e793c", "status": "DOWN", "port_id": "4a1e1bd7-8df9-45db-aa46-d7de0f2f2269", "id": "8f6e9a03-8ef3-422e-bb2e-9d9283f406de"}}
---------------------------------------------------------------
Fix proposed to branch: master /review. openstack. org/160231
Review: https:/