> On 13-Feb-2015, at 7:28 pm, Andrei Mikhailovsky <[email protected]> wrote: > > Hello guys, > > I have a silly question; can't really find an answer by googling. How do I > use tags when I want to query something. For instance, if I want to query > volumes using "list volumes" command. If i would like to get only the results > containing a certain tag, like a tag with key remote_backup and value of yes; > how would the list volumes command should look like?
The behaviour of APIs is not consistent. With CloudMonkey you can pass key[0]=value to pass tags; https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+cloudmonkey+CLI#CloudStackcloudmonkeyCLI-Argumentpassing If an API accepts a map of string (key=value…) i.e. filtering by tags, the above syntax can be used. > > Thanks > > Andrei Regards, Rohit Yadav Software Architect, ShapeBlue M. +91 88 262 30892 | [email protected] Blog: bhaisaab.org | Twitter: @_bhaisaab 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.
