cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rohit Yadav <rohit.ya...@citrix.com>
Subject Re: cloudmonkey : add a instance
Date Fri, 07 Dec 2012 18:37:18 GMT
As I mentioned in one of the previous emails, read: http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/TOC_Root_Admin.html
Pl. follow the docs there and read the API guide on usage: http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-incubating/html/API_Developers_Guide/index.html
All the apis are grouped per entities, like VirtualMachines etc.

To answer your question, this is how I would do it:
- So what would be the api for adding a vm? I see on the html docs under VM:
Virtual Machine

 *   deployVirtualMachine (A)<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/deployVirtualMachine.html>
 *   destroyVirtualMachine (A)<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/destroyVirtualMachine.html>
 *   rebootVirtualMachine (A)<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/rebootVirtualMachine.html>
 *   startVirtualMachine (A)<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/startVirtualMachine.html>
 *   stopVirtualMachine (A)<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/stopVirtualMachine.html>
 *   resetPasswordForVirtualMachine (A)<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/resetPasswordForVirtualMachine.html>
 *   changeServiceForVirtualMachine<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/changeServiceForVirtualMachine.html>
 *   updateVirtualMachine<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/updateVirtualMachine.html>
 *   recoverVirtualMachine<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/recoverVirtualMachine.html>
 *   listVirtualMachines<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/listVirtualMachines.html>
 *   getVMPassword<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/getVMPassword.html>
 *   migrateVirtualMachine (A)<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/migrateVirtualMachine.html>
 *   assignVirtualMachine<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/assignVirtualMachine.html>
 *   restoreVirtualMachine (A<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/restoreVirtualMachine.html>

- I see deployVirtualMachines would make sense, I click on it, I see:

<http://cloudstack.org>
          Apache CloudStack 4.0.0-incubating Root Admin API Reference

deployVirtualMachine

Creates and automatically starts a virtual machine based on a service offering, disk offering,
and template.

<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/TOC_Root_Admin.html>
Request parameters
Parameter Name  Description     Required
serviceofferingid       the ID of the service offering for the virtual machine  true
templateid      the ID of the template for the virtual machine  true
zoneid  availability zone for the virtual machine       true


- I open cloudmonkey to see if there anything when I type dell<tab><tab>, it completes
to deploy, I add a space<tab><tab>, I get: deploy virtualmachine
- I don't know what to pass so I pass, --help
deploy virtualmachine --help
- Job done!

Hope this would help,
Rohit
On 07-Dec-2012, at 7:34 AM, Charles Moulliard <ch007m@gmail.com<mailto:ch007m@gmail.com>>
wrote:

Hi,

What is the command to be used to add an instance using cloudmonkey ?

Regards

--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message