The deployVirtualMachine API is an a-sync job. You'll need to use the ID returned to use queryAsyncJobResult to get the password.
On 28 June 2013 12:32, Asmita Vagyani <asmita.vagy...@sigma-systems.com>wrote: > The getVMPassword API doesnot return the password. > If the VM is created using the ssh keypair then we can get password. > > > Regards, > > Asmita. > > > > -----Original Message----- > From: Geoff Higginbottom [mailto:geoff.higginbot...@shapeblue.com] > Sent: 28 June 2013 PM 04:03 > To: users@cloudstack.apache.org > Subject: RE: Cloudstack password enabled template > > Asmita, > > Are you adding the Password Reset Script to your Templates, if so then > each time you create a new VM it will get a randomly generated password. > > I believe you can then also use the getVMPassword API call to query the > existing password, although I have not tested this new 4.1 API command yet. > > Regards > > Geoff Higginbottom > > D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581 > > geoff.higginbot...@shapeblue.com > > -----Original Message----- > From: Asmita Vagyani [mailto:asmita.vagy...@sigma-systems.com] > Sent: 28 June 2013 11:26 > To: cloudstack-us...@incubator.apache.org > Subject: Cloudstack password enabled template > > > Hi, > > I have some queries related to getting password of VM that is created. > > I am using deployVirtualMachine api to create virtual machine from > templates that I have configured in cloudstack. > > When VM is deployed I want to get username and password of the VM to login > to that VM instance. > Also I want to generate random password everytime new VM is created using > the same template. > > Can anyone help me with that? > > > Regards, > > Asmita. > > This email and any attachments to it may be confidential and are intended > solely for the use of the individual to whom it is addressed. Any views or > opinions expressed are solely those of the author and do not necessarily > represent those of Shape Blue Ltd or related companies. If you are not the > intended recipient of this email, you must neither take any action based > upon its contents, nor copy or show it to anyone. Please contact the sender > if you believe you have received this email in error. Shape Blue Ltd is a > company incorporated in England & Wales. ShapeBlue Services India LLP is > operated under license from Shape Blue Ltd. ShapeBlue is a registered > trademark. > >