Thanks Phillip for sending the PR, merged on master and 4.5 branches.
On Thursday 05 March 2015 06:07 PM, Phillip Kent wrote:
Note this is a property of the API call, listVirtualMachines, not Cloudmonkey.
So far as I can tell it is performing a substring match. Actually,
quite useful :-)
But it should be documented. I just made a pull request for a note to
appear in the API documentation:
https://github.com/apache/cloudstack/pull/98
---------- Forwarded message ----------
From: Dan Dong <dongda...@gmail.com>
To: "users@cloudstack.apache.org" <users@cloudstack.apache.org>
Cc:
Date: Wed, 4 Mar 2015 14:49:15 -0600
Subject: Re: "list virtualmachines name=" problem.
Hi, Harikrishna,
Thanks, surely UUID will work in this case, but why not let user decide
the match pattern himself? E.g:
list virtualmachines name=vm-1*
to list vm-1, vm-10, vm-11 ......
I think VM name is unique for all the VMs user created? It would be natural
if all details of a VM could be got through its name, i.e:
vm_name==>vm_details
Cheers,
Dan
2015-03-04 12:00 GMT-06:00 Harikrishna Patnala <
harikrishna.patn...@citrix.com>:
Hi Dan,
listVirtualMachine API provided with vm name gives the result of VMs where
name like “%Provided_VM_name%”.
As the name vm-10 is like vm-1, you are getting the result of vm-10 as
well.
You can try with UUID of the vm which gives you exact vm details you want,
http://localhost:8080/client/api?command=listVirtualMachines&id=11b7032d-4c03-4fc0-a394-71d921c1e3ba
Thanks,
Harikrishna
On 04-Mar-2015, at 10:01 pm, Dan Dong <dongda...@gmail.com> wrote:
Hi,
I found when I try to list details of the VM with name vm-1 by:
list virtualmachines name=vm-1
Cloudstack will also return me with info of another VM machine of vm-10,
so
I got 2 VMs info here.
How to avoid this? Thanks.
Cheers,
Dan
--
Regards,
Rohit Yadav
Software Architect, ShapeBlue
M. +91 8826230892 | rohit.ya...@shapeblue.com
Blog: bhaisaab.org | Twitter: @_bhaisaab
PS. If you see any footer below, I did not add it :)
Find out more about ShapeBlue and our range of CloudStack related services
IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Software
Engineering<http://shapeblue.com/cloudstack-software-engineering/>
CloudStack Infrastructure
Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>
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 a company incorporated in India and is operated
under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company
incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue
SA Pty Ltd is a company registered by The Republic of South Africa and is traded
under license from Shape Blue Ltd. ShapeBlue is a registered trademark.