Quantcast
Channel: VMware Communities : Discussion List - Virtual Disk Development Kit
Viewing all articles
Browse latest Browse all 2039

Get EdgeGatewayServiceConfiguration from C# Api

$
0
0

I'm noticing that whenever I retrieve an EdgeGateway, its Configuration is missing.  The services are all null under EdgeGatewayServiceConfiguration.

 

Here's what i'm trying to do:

 

var edgeGateway = EdgeGateway.GetEdgeGatewayById(Client, id);

edgeGateway.Resource.Configuration.EdgeGatewayServiceConfiguration.NetworkService; // this property (an array) is always null.

 

I can see the configuration in the xml, when i run tests & things.  That all looks fine, just for some reason its not getting into the .net object. 

 

I could write a method to manually go get the Xml and then parse that out myself, but Ideally there'd be an easier way?

 

Any Help would be greatly appreciated!

 

Scott


Viewing all articles
Browse latest Browse all 2039

Trending Articles



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