Hi Tejas, For network offering if you are adding any supported service then you have to provide the supported service provider also. When you have created the network offering with userdata as support service then you have to provide the service provider also. Like Geoff has stated in his api example virtual router as service provider.*If provider not specified, the provider for the service will be mapped to the default provider on the physical network.Then it show error of *More than 1 provider supporting service UserData found in cloudStack
On Sat, Jan 18, 2014 at 9:19 AM, Tejas Gadaria <refond.g...@gmail.com>wrote: > Hi Geoff, > > Thanks for replay, > I believe we can create same network offering through UI also, when we are > creating custom network offering and guest network through UI similar > options are available. So what is the advantage to perform this task > through API. > > Regards, > Tejas > > > On Fri, Jan 17, 2014 at 5:55 PM, Geoff Higginbottom < > geoff.higginbot...@shapeblue.com> wrote: > > > Tegas, > > > > I created a matching network offering using this API command > > > > > http://192.168.0.3:8096/client/api?command=createNetworkOffering&displaytext=test&guestiptype=Isolated&name=test&supportedservices=UserData&traffictype=Guest&networkrate=1000&serviceproviderlist[0].provider=VirtualRouter&serviceproviderlist[0].service=UserData&specifyipranges=True&specifyvlan=True > > > > Then I enabled it > > > > > http://192.168.0.3:8096/client/api?command=updateNetworkOffering&id=6c8ecd09%2D43ab%2D4aef%2Da4a7%2D25f28583e28a&state=Enabled > > > > Then I created a new network > > > > > http://192.168.0.3:8096/client/api?command=createNetwork&displaytext=test&name=test&networkofferingid=6c8ecd09%2D43ab%2D4aef%2Da4a7%2D25f28583e28a&zoneid=7890ff1d%2D0537%2D4a59%2Db9a7%2D445fe7830d6f&account=admin&acltype=Account&domainid=7a0703e6%2D74b8%2D11e3%2Da3ac%2D0800273826cf&endip=192%2E168%2E62%2E19&gateway=192%2E168%2E62%2E1&netmask=255%2E255%2E255%2E0&startip=192%2E168%2E62%2E11&vlan=1234 > > > > All these worked as expected, but I am running 4.2.1. > > > > Note in my createNetworkOffering command, I also have the following two > > parameters which you do not appear to mention in your earlier mail. This > is > > not documented in the API reference > > > > serviceproviderlist[0].provider=VirtualRouter > > serviceproviderlist[0].service=UserData > > > > This is not documented in the API reference, but is a common API concept > > when you are passing multiple parameters. > > > > > http://cloudstack.apache.org/docs/api/apidocs-4.0.0/root_admin/createNetworkOffering.html > > > > > > Regards > > > > Geoff Higginbottom > > > > D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581 > > > > geoff.higginbot...@shapeblue.com > > > > -----Original Message----- > > From: Tejas Gadaria [mailto:refond.g...@gmail.com] > > Sent: 17 January 2014 11:58 > > To: users@cloudstack.apache.org > > Subject: Re: Custom network offering through API > > > > Hi, > > > > Thanks for reply, > > > > So below command i am using to create network with custom network > offering. > > > > > > > http://10.129.151.154:8096/client/api?command=createNetwork&name=test&displaytext=test&networkofferingid=xxxx&zoneid=xxxx&startip=xxxx&endip=xxxx&gateway=xxxx&netmask=xxxx&vlan=xxxx > > > > I am using cloudstack 4.0.2 and have change port setting for API from > > globe setting. > > > > Regards, > > Tejas > > > > > > On Fri, Jan 17, 2014 at 4:02 PM, Geoff Higginbottom < > > geoff.higginbot...@shapeblue.com> wrote: > > > > > Tejas, > > > > > > Can you share the full API command you are trying to use? > > > > > > Regards > > > > > > Geoff Higginbottom > > > > > > D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581 > > > > > > geoff.higginbot...@shapeblue.com > > > > > > -----Original Message----- > > > From: Tejas Gadaria [mailto:refond.g...@gmail.com] > > > Sent: 17 January 2014 08:38 > > > To: users@cloudstack.apache.org > > > Subject: Custom network offering through API > > > > > > Hi, > > > > > > I have created Network-offering using API provided below parameters. > > > > > > > > > *name=Name**displaytext=OfferingDescription* > > > *guest type=isolated* > > > > > > *supportedservices=UserData**specifyipranges=true* > > > > > > *specifyvlan=true* > > > > > > *networkrate=1000* > > > Also I have activated the Network-offering. > > > > > > While trying creating guest network through API its Showing > > > * "More than 1 provider supporting service UserData found in > > > cloudStack"* > > > > > > *error-code 530* > > > > > > *cserror-code 9999* > > > > > > This is the 1st custom network offering i have created with *UserData > > > .* Please help me on this. > > > > > > Regards, > > > Tejas > > > Need Enterprise Grade Support for Apache CloudStack? > > > Our CloudStack Infrastructure Support< > > > http://shapeblue.com/cloudstack-infrastructure-support/> offers the > > > best > > > 24/7 SLA for CloudStack Environments. > > > > > > Apache CloudStack Bootcamp training courses > > > > > > **NEW!** CloudStack 4.2 > > > training<http://shapeblue.com/cloudstack-training/ > > > > > > > 08/09 January 2014, London<http://shapeblue.com/cloudstack-training/> > > > 13-17 January 2014, GLOBAL. Instructor led, On-line< > > > http://shapeblue.com/cloudstack-training/> > > > 20-24 January 2014, GLOBAL. Instructor led, On-line< > > > 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 is > a > > registered trademark. > > > > > 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 is a > > registered trademark. > > > -- THANKS AND REGARDS AMAR KRISHNA MOB-8969394494