Here's the request that OSC sends for the above command. Note the duplicate port ID.
REQ: curl -g -i -X POST http://192.168.50.23/compute/v2.1/servers -H "Accept: application/json" -H "Content-Type: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}c90e6681b5e681213c816ea7f0747201c4c4acbc950943cfabefc2bf3109b923" -H "X-OpenStack-Nova-API-Version: 2.1" -d '{"server": {"name": "test-server", "imageRef": "5a696736-805e-42af-bb8a-9344cee1b5c3", "flavorRef": "2", "min_count": 1, "max_count": 1, "networks": [{"port": "e3caceae-2c74-4114-9f3f-262a37fc1971"}, {"port": "e3caceae-2c74-4114-9f3f-262a37fc1971"}]}}'
Here's the request that OSC sends for the above command. Note the duplicate port ID.
REQ: curl -g -i -X POST http:// 192.168. 50.23/compute/ v2.1/servers -H "Accept: application/json" -H "Content-Type: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256} c90e6681b5e6812 13c816ea7f07472 01c4c4acbc95094 3cfabefc2bf3109 b923" -H "X-OpenStack- Nova-API- Version: 2.1" -d '{"server": {"name": "test-server", "imageRef": "5a696736- 805e-42af- bb8a-9344cee1b5 c3", "flavorRef": "2", "min_count": 1, "max_count": 1, "networks": [{"port": "e3caceae- 2c74-4114- 9f3f-262a37fc19 71"}, {"port": "e3caceae- 2c74-4114- 9f3f-262a37fc19 71"}]}} '