← Back to team overview

openstack team mailing list archive

Re: which API can do these?

 

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@xxxxxxxxxxxxx
Date: Tue, 9 Jul 2013 11:23:14 -0500
Subject: Re: [Openstack] which API can do these?
To: mcheung63@xxxxxxxxxxx
CC: openstack@xxxxxxxxxxxxxxxxxxx

Hi Peter, 
Some doc links below.
On Tue, Jul 9, 2013 at 4:59 AM, Peter Cheung <mcheung63@xxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx

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

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



 		 	   		  

Follow ups

References