On 6/22/12 5:50 AM, "Prasanna Santhanam" <prasanna.santha...@citrix.com>
wrote:

>Hi Amit,
>
>Posting this to the asf-dev list. There are more eyes here to correct me
>if I am wrong. 
>
>Answers Inline: 
>
>> Where can I find more information on specific parameters passed to a
>> CLoudStack API. The API reference guide only provides a one line
>> description
>> 
>
>I think that the API reference is the current authoritative doc.
>
>> Eg: In the deployVirtualMachine API what is the networkids parameter
>> used for ? It says list of networks.  So how do I pass the list ? in
>> a array ? is there any advanced documentation with examples ?
>> 
>
>This parameter chooses the guest networks that the VM becomes a part of
>on successful deployment. The deployVirtualMachine's networkIds are a
>comma-seperated list of networkIds returned by listNetworks API call.
>
>> 
>> The current issue I am working on is provisioning machines on a
>> CloudStack setup which has multiple networks available. So how do I
>> choose what network to select for the VM. I don't want to provide
>> this as an option to the user as that will complicate the
>> implementation. 
>
>Few approaches I can think of:
>
>* You could always choose the one single network you are interested in.
>
>* One network can be selected to be default so that the VM always gets
>deployed in that network when not given a networkid.


We don't have notion of default network in 3.0.x, any network can be
default now. If multiple networks are passed to deployVm command, the
first one in the list becomes default.


>
>* If your user is using the CloudStack UI I'm not sure how to hide the
>other networks. If not - filtering out listNetworks should work for
>you.



To expose network only to specific account/domain, you have to create it
with specifying scope=account or scope=domain. In this case only users
from network's account/domain can use the network for vm deployment.
Or you can do filtering based on some parameter as Prasanna suggested. You
can use specific network offering for networks you want to expose to the
user, and list by networkoffering id.


>
>HTH
>
>-- 
>Prasanna.,
>


Reply via email to