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

Re: Vcloud 5.1 API C# Adding Firewall Rules to configure Edge Gateway.

$
0
0

I have found the answer. Following is the way to set Firewall rules type protocol in C# API.

 

           //create firewall protocols type object

            var protocol = new FirewallRuleTypeProtocols();

            //Set protocols items value this value correspond to xml element value 

           protocol.Items = new object[] { true };

           //Set Element name this correspond to xml Element name.

            protocol.ItemsElementName = new ItemsChoiceType[] { ItemsChoiceType.Tcp };

            //Set Protocol

            firewallRuleType.Protocols = protocol;


Viewing all articles
Browse latest Browse all 192300

Trending Articles



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