failed while create flavor using openstack api?
I create flavor using openstack api as flow:
curl -s -H "X-Auth-Token: $OS_TOKEN" $OS_COMPUTE_API/flavors -d '{ "flavor": { "name": "test_flavor", "ram": 1024, "vcpus": 2, "disk": 10, "id": "10", "rxtx_factor": 2.0 } }'
But I encouter error:
{ "badMediaType": { "code": 415, "message": "Unsupported Content-Type" } }
Where is my mistake? Thanks!
Anybody know about this problem?