<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br>Hi Anne<div>    If I modify the flavor, the vm doesn't take effect immediately. So how can i add more cpu to a running instance?</div><div><br>Thanks<div>from Peter</div><br><br><div><hr id="stopSpelling">From: anne@openstack.org<br>Date: Tue, 9 Jul 2013 11:23:14 -0500<br>Subject: Re: [Openstack] which API can do these?<br>To: mcheung63@hotmail.com<br>CC: openstack@lists.launchpad.net<br><br><div dir="ltr">Hi Peter, <div><br></div><div>Some doc links below.</div><div class="ecxgmail_extra"><br><div class="ecxgmail_quote">On Tue, Jul 9, 2013 at 4:59 AM, Peter Cheung <span dir="ltr"><<a href="mailto:mcheung63@hotmail.com" target="_blank">mcheung63@hotmail.com</a>></span> wrote:<br>

<blockquote class="ecxgmail_quote" style="border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex;">


<div><div dir="ltr">Hi All<div>  which API can do these?</div><div><br></div><div>1) adjust the RAM size, no of CPU core to an instance</div></div></div></blockquote><div><br></div><div><div>For 1) the keyword you want to look for in the docs is flavors. You can read more at <a href="http://docs.openstack.org/trunk/openstack-ops/content/flavors.html" target="_blank">http://docs.openstack.org/trunk/openstack-ops/content/flavors.html</a>. 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. </div>

<div><br></div><div>Use nova --debug flavor-create to see the API commands associated with these adjustments to flavors. </div></div><div> </div><blockquote class="ecxgmail_quote" style="border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex;">

<div><div dir="ltr"><div>2) enlarge a disk to an instance</div></div></div></blockquote><div><br></div><div>This is also specified in flavors. </div><div><br></div><div> </div><blockquote class="ecxgmail_quote" style="border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex;">

<div><div dir="ltr"><div>3) get the information about ram/cpu/disk size of an instance<br><br></div></div></div></blockquote><div><br></div><div>You want this I believe. <a href="http://api.openstack.org/api-ref.html#ext-os-flavorextradata" target="_blank">http://api.openstack.org/api-ref.html#ext-os-flavorextradata</a><br>

</div><div> </div><blockquote class="ecxgmail_quote" style="border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex;"><div><div dir="ltr"><div>Thanks<div>from Peter</div>

</div>                                      </div></div>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br></div></div></div></div>                                       </div></body>
</html>