Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Try this

curl -i http://<controller-host-name>:8774/v2/<tenant-id>/flavors 
-X POST 
-H "X-Auth-Project-Id: admin" 
-H "User-Agent: python-novaclient" 
-H "Content-Type: application/json" -H "Accept: application/json" 
-H "X-Auth-Token: 51a815cb8b7044cfb4e2f11909c277bd" 
-d '{"flavor": {"vcpus": 1, "disk": 0, "name": "lokesh-flavor", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "ram": 4096, "id": "123457", "swap": 0}}'