[Openstack] which API can do these?

Peter Cheung mcheung63 at hotmail.com
Thu Jul 11 07:54:01 UTC 2013

Hi Anne    If I modify the flavor, the vm doesn't take effect immediately. So how can i add more cpu to a running instance?
Thanksfrom Peter

From: anne at openstack.org
Date: Tue, 9 Jul 2013 11:23:14 -0500
Subject: Re: [Openstack] which API can do these?
To: mcheung63 at hotmail.com
CC: openstack at lists.launchpad.net

Hi Peter, 
Some doc links below.
On Tue, Jul 9, 2013 at 4:59 AM, Peter Cheung <mcheung63 at hotmail.com> wrote:

Hi All  which API can do these?
1) adjust the RAM size, no of CPU core to an instance
For 1) the keyword you want to look for in the docs is flavors. You can read more at http://docs.openstack.org/trunk/openstack-ops/content/flavors.html. It indicates that you can use nova flavor-create -- note that you're technically not modifying an existing flavor, you're creating a new flavor and renaming it. 

Use nova --debug flavor-create to see the API commands associated with these adjustments to flavors.  

2) enlarge a disk to an instance
This is also specified in flavors. 

3) get the information about ram/cpu/disk size of an instance

You want this I believe. http://api.openstack.org/api-ref.html#ext-os-flavorextradata

 Thanksfrom Peter



Mailing list: https://launchpad.net/~openstack

Post to     : openstack at lists.launchpad.net

Unsubscribe : https://launchpad.net/~openstack

More help   : https://help.launchpad.net/ListHelp

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130711/7768f44e/attachment.html>

More information about the Openstack mailing list