Revision history [back]

click to hide/show revision 1
initial version

create flavor by 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!

create flavor by 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",\ "test_flavor", "ram": 1024,\ 1024, "vcpus": 2,\ 2, "disk": 10,\ 10, "id": "10",\ "10", "rxtx_factor": 2.0\ }\ 2.0 } }'

But I encouter error:

{ "badMediaType": { "code": 415, "message": "Unsupported Content-Type" } }

Where is my mistake? Thanks!

create flavor by 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!

create flavor by 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!