Ask Your Question
1

flavour api [closed]

asked 2014-01-08 00:00:28 -0600

Lokesh gravatar image

Hi

  May i know how to call an API for creating the flavour in openstack .

Regards , Lokesh.S

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by dheeru
close date 2014-02-09 23:58:59.168851

1 answer

Sort by ยป oldest newest most voted
3

answered 2014-01-08 00:41:00 -0600

dheeru gravatar image

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}}'
edit flag offensive delete link more

Comments

did u try ? Did this work ?

dheeru gravatar imagedheeru ( 2014-01-08 03:28:29 -0600 )edit

Hope this solved your issue. Confirm the same. I would like to close this request.

dheeru gravatar imagedheeru ( 2014-01-13 23:46:37 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2014-01-08 00:00:28 -0600

Seen: 68 times

Last updated: Jan 08 '14