Tawfiq

When you add a Host, you can specify the 'hosttags' parameter, and you can also 
update the tags using the updatehost api call

e.g.

http://nn.nn.nn.nn:nn/client/api?command=updateHost&id=hostid&hosttags=tag1,tag2,tag3


Regards

Geoff Higginbottom

D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581

[email protected]

-----Original Message-----
From: tawfiq zidi [mailto:[email protected]]
Sent: 13 March 2013 09:14
To: [email protected]; [email protected]
Subject: Re: Deploy Virtual Machine via API

Hi,

Thank you for your replies.

@Ahmad Emneina : I tried your proposition but I didn't found something that 
permit to tag a host . could you please clarify more your idea.

Best Regards.


On Wed, Mar 6, 2013 at 10:53 PM, Ahmad Emneina <[email protected]> wrote:

> one could also tag the hosts with the same tag within a cluster. Then
> associate service offerings to map to either cluster A or cluster B.
> Thats also another option.
>
>
> On Wed, Mar 6, 2013 at 3:53 AM, prasanna <[email protected]
> >wrote:
>
> > On 6 March 2013 17:03, tawfiq zidi <[email protected]> wrote:
> > > Hi,
> > >
> > > I recently decided to start using CloudStack API , I want to use
> > > API to deploy virtual machine.
> > > My current configuration is :
> > > * I have two Clusters KVM and each cluster have one host.
> > > *One management server.
> > >
> > > I wonder how I can choose the Cluster when I deploy VM , beause I
> looked
> > > into API deployVrtualMachine : (
> > >
> >
> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/user/dep
> loyVirtualMachine.html
> > > )
> > > and I didn't found something that specify the Cluster.
> > >
> > > I would be thankful for any help.
> > >
> > > Best regards.
> >
> > Users are not allowed to target clusters for deployingVMs because
> > they have no visibility of it. It is possible through the Root admin
> > api to target a host
> >
> >
> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_adm
> in/deployVirtualMachine.html
> >
> >
> > --
> > Prasanna.,
> >
>
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.

Reply via email to