Return-Path: X-Original-To: apmail-incubator-cloudstack-users-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 510F1D59F for ; Wed, 13 Mar 2013 09:45:35 +0000 (UTC) Received: (qmail 79850 invoked by uid 500); 13 Mar 2013 09:45:34 -0000 Delivered-To: apmail-incubator-cloudstack-users-archive@incubator.apache.org Received: (qmail 79798 invoked by uid 500); 13 Mar 2013 09:45:34 -0000 Mailing-List: contact cloudstack-users-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-users@incubator.apache.org Delivered-To: mailing list cloudstack-users@incubator.apache.org Received: (qmail 79785 invoked by uid 99); 13 Mar 2013 09:45:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Mar 2013 09:45:34 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of geoff.higginbottom@shapeblue.com designates 216.32.181.184 as permitted sender) Received: from [216.32.181.184] (HELO ch1outboundpool.messaging.microsoft.com) (216.32.181.184) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Mar 2013 09:45:26 +0000 Received: from mail42-ch1-R.bigfish.com (10.43.68.253) by CH1EHSOBE013.bigfish.com (10.43.70.63) with Microsoft SMTP Server id 14.1.225.23; Wed, 13 Mar 2013 09:45:05 +0000 Received: from mail42-ch1 (localhost [127.0.0.1]) by mail42-ch1-R.bigfish.com (Postfix) with ESMTP id 58C50602CA for ; Wed, 13 Mar 2013 09:45:05 +0000 (UTC) X-Forefront-Antispam-Report: CIP:157.56.254.197;KIP:(null);UIP:(null);IPV:NLI;H:DB3PRD0711HT003.eurprd07.prod.outlook.com;RD:none;EFVD:NLI X-SpamScore: -5 X-BigFish: PS-5(zz98dI9371I542I1432I55dIzz1f42h1ee6h1de0h1202h1e76h1d1ah1d2ahzz17326ah8275dh8275bhz2fh2a8h668h839h944hd25hf0ah1220h1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh15d0h162dh1631h1758h18e1h1946h19b5h19ceh1ad9h1b0ah1155h) Received-SPF: pass (mail42-ch1: domain of shapeblue.com designates 157.56.254.197 as permitted sender) client-ip=157.56.254.197; envelope-from=geoff.higginbottom@shapeblue.com; helo=DB3PRD0711HT003.eurprd07.prod.outlook.com ;.outlook.com ; Received: from mail42-ch1 (localhost.localdomain [127.0.0.1]) by mail42-ch1 (MessageSwitch) id 1363167903290624_898; Wed, 13 Mar 2013 09:45:03 +0000 (UTC) Received: from CH1EHSMHS035.bigfish.com (snatpool3.int.messaging.microsoft.com [10.43.68.228]) by mail42-ch1.bigfish.com (Postfix) with ESMTP id 3B1C24E010E for ; Wed, 13 Mar 2013 09:45:03 +0000 (UTC) Received: from DB3PRD0711HT003.eurprd07.prod.outlook.com (157.56.254.197) by CH1EHSMHS035.bigfish.com (10.43.70.35) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 13 Mar 2013 09:45:03 +0000 Received: from DB3PRD0711MB603.eurprd07.prod.outlook.com ([169.254.5.208]) by DB3PRD0711HT003.eurprd07.prod.outlook.com ([10.255.183.36]) with mapi id 14.16.0263.000; Wed, 13 Mar 2013 09:44:56 +0000 From: Geoff Higginbottom To: "cloudstack-users@incubator.apache.org" Subject: RE: Deploy Virtual Machine via API Thread-Topic: Deploy Virtual Machine via API Thread-Index: AQHOGl6PyhusrzTS5Uu4OVwYOgnNyJiYjaUAgACnqACACiw9AIAAB+0Q Date: Wed, 13 Mar 2013 09:44:56 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [80.229.158.60] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: shapeblue.com X-Virus-Checked: Checked by ClamAV on apache.org 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=3DupdateHost&id=3Dhostid&hosttags= =3Dtag1,tag2,tag3 Regards Geoff Higginbottom D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581 geoff.higginbottom@shapeblue.com -----Original Message----- From: tawfiq zidi [mailto:tawfiq.zidi@gmail.com] Sent: 13 March 2013 09:14 To: cloudstack-users@incubator.apache.org; aemneina@gmail.com 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 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 >wrote: > > > On 6 March 2013 17:03, tawfiq zidi 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 s= olely for the use of the individual to whom it is addressed. Any views or o= pinions expressed are solely those of the author and do not necessarily rep= resent those of Shape Blue Ltd or related companies. If you are not the int= ended 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 y= ou believe you have received this email in error. Shape Blue Ltd is a compa= ny incorporated in England & Wales. ShapeBlue Services India LLP is operate= d under license from Shape Blue Ltd. ShapeBlue is a registered trademark.