Quantcast
Channel: VMware Communities : Discussion List - VMware {code}
Viewing all articles
Browse latest Browse all 2738

VCD API call for Fence vApp operation

$
0
0

Hello,

 

I'm trying to make the API call as same as Fence vApp operation from VCD UI shown in attached image.

 

I've tried snippet code below but it's behavior not same as made on UI.

 

 

NetworkConfigSectionType networkConfigSectionType = vapp.getNetworkConfigSection();
networkConfigSectionType.getNetworkConfig().get(0).getConfiguration().setFenceMode(FenceModeValuesType.NATROUTED.value());
vapp.updateSection(networkConfigSectionType).waitForTask(0);*/

NetworkConfigSectionType networkConfigSectionType = vapp.getNetworkConfigSection();

 

networkConfigSectionType.getNetworkConfig().get(0).getConfiguration().setFenceMode(FenceModeValuesType.BRIDGED.value());

 

vapp.updateSection(networkConfigSectionType).waitForTask(0);

 

 

 

ps. My vApp directly connected to Org VDC Network.

 

Any idea?

 

Thank you.

 

Nont

 

 

FenceVApp.PNG


Viewing all articles
Browse latest Browse all 2738

Trending Articles



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