Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 49146

Automate configuring VXLAN in NSX using Rest API and vRO - MOID ???

$
0
0

Rest API documentation says we need make a post request with below details"

 

POST /api/2.0/nwfabric/configure

 

<nwFabricFeatureConfig>

<featureId>com.vmware.vshield.vsm.vxlan</featureId>

<resourceConfig>

<resourceId>CLUSTER MOID</resourceId>

<configSpec class="clusterMappingSpec">

<switch>

<objectId>DVS MOID</objectId></switch>

<vlanId>0</vlanId>

<vmknicCount>1</vmknicCount>

<ipPoolId>IPADDRESSPOOL ID</ipPoolId>

</configSpec>

</resourceConfig>

<resourceConfig>

<resourceId>DVS MOID</resourceId>

<configSpec class="vdsContext">

<switch>

<objectId>DVS MOID</objectId>

</switch>

<mtu>1600</mtu>

<teaming>ETHER_CHANNEL</teaming>

</configSpec>

</resourceConfig>

</nwFabricFeatureConfig>

 

There are a couple of XML tags above where we need to submit MOID. The input is intended to provide is the names Say cluster Name, DVS Name, IPAddress pool Name instead of MOID. I need suggestions on how to use these names and convert those to respective MOID.

 

Thanks

Sandeep


Viewing all articles
Browse latest Browse all 49146

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>