I want install the network virtualization components on vSphere host via NSX API, anybody can help me?
Hi,
to which NSX SDK are you referring to?
I can confirm, that the following REST call will work to prepare the hosts in the cluster.
POST https://nsx-mgr-ip/api/2.0/nwfabric/configure
<nwFabricFeatureConfig>
<resourceConfig>
<resourceId>domain-c11</resourceId>
</resourceConfig>
</nwFabricFeatureConfig>
You will receive the <jobID> in the http reply.
The status of job can be polled here:
https://nsx-mgr-ip/api/2.0/services/taskservice/job/<jobID>
domain-c11 -> MoRef of the cluster you want to prepare. I assume you know how to get the MoRef of a Cluster.
Do not forget the basic authentication and Content-Type:application/xml header
I hope this helps
fab
http://pubs.vmware.com/NSX-61/topic/com.vmware.ICbase/PDF/nsx_61_api.pdf
page 28 of the doc above is a decent start. Since there is a cluster level element at the core of the feature that's what you would reference as your resource moref. Something like "domain-c7", but whatever applies to your target cluster.
You can install the host level vibs using the esxcli software vib namespace... But doing only that wouldn't be sufficlient.
Does that help?
Hi,
did you have a look at Chris Wahl's NSX series posts:
http://wahlnetwork.com/2014/06/12/working-nsx-preparing-cluster-hosts/
Working with NSX - Configuring VXLAN and VTEPs - Wahl Network
I hope that helps you get started.
fab
I cannot find the "nwFabricFeatureConfig" Class in my SDK. If there something missing in my SDK?
<nwFabricFeatureConfig>
<resourceConfig>
<resourceId>{CLUSTER MOID}</resourceId>
</resourceConfig>
</nwFabricFeatureConfig>
You have to pass that information in the body of the REST POST request, with the site specific cluster MOID. I
When you say "my SDK", are you referring to the version of the NSX API guide you're referencing? It's very possible that the information was previousl omitted.
You have all of the information needed in the previous posts though.
Maybe create a simple curl query for your test runs?
Hi,
to which NSX SDK are you referring to?
I can confirm, that the following REST call will work to prepare the hosts in the cluster.
POST https://nsx-mgr-ip/api/2.0/nwfabric/configure
<nwFabricFeatureConfig>
<resourceConfig>
<resourceId>domain-c11</resourceId>
</resourceConfig>
</nwFabricFeatureConfig>
You will receive the <jobID> in the http reply.
The status of job can be polled here:
https://nsx-mgr-ip/api/2.0/services/taskservice/job/<jobID>
domain-c11 -> MoRef of the cluster you want to prepare. I assume you know how to get the MoRef of a Cluster.
Do not forget the basic authentication and Content-Type:application/xml header
I hope this helps
fab