Have you tried deploying the vm to both networks via the gui? if that succeeds you should turn on developer tools or firebug and see what the api call looks like, to deploy with two networks.
On Mon, Oct 21, 2013 at 8:35 AM, DUPONT Simon <sdup...@sigma.fr> wrote: > Hello, > > > > I tried, for several days, to deploy a VM (using the Cloudstack API) > connected to two networks (one isolated and one shared). > > I used the deployVirtualMachine command using the optional parameter > "networkids". > > I can deploy my VM with one network (networkids="isolatedNetworkId" OR > networkids="sharedNetworkId") but I can't deploy it specifying both > (network id's list) like described in the API documentation > (networkids="isolatedNetworkId,sharedNetworkId"). > > > > Request : > > http://MYHOST/client/api?command=deployVirtualMachine&serviceOfferingId= > MYSERVICEOFFERINGID&templateId=MYTEMPLATEID&zoneId=MYZONEID&name=NAME&di > splayname=DISPLAYNAME > &networkids=2469f7c1-fb70-4a8d-bd42-93cc42ad9a72,6fd8d6a8-45ad-4705-b597 > -38afd11c611f&apiKey=MYKEY&signature=MYSIGNATURE > > > > Response : > > { "deployvirtualmachineresponse" : {"errorcode":401,"errortext":"unable > to verify user credentials and/or request signature"} } > > > > > > But it works with &networkids=2469f7c1-fb70-4a8d-bd42-93cc42ad9a72 OR > &networkids=6fd8d6a8-45ad-4705-b597-38afd11c611f > > > > Could you help me to fix this problem please ? > > > > Thanks. > > > > Simon > >