
vShield API Programming Guide
68 VMware, Inc.
<containerId>domain-c26</containerId>
</address>
<application>
<applicationSetId>application-20</applicationSetId>
</application>
</destination>
</layer3FirewallRule>
<layer3FirewallRule disabled="false" precedence="low" id="1504">
<action>allow</action>
<logged>false</logged>
<notes></notes>
<source>
<address exclude="false">
<containerId>domain-c26</containerId>
</address>
</source>
<destination>
<address exclude="true">
<containerId>domain-c26</containerId>
</address>
<application>
<applicationSetId>application-24</applicationSetId>
</application>
</destination>
</layer3FirewallRule>
<layer3FirewallRule disabled="false" precedence="low" id="1503">
<action>allow</action>
<logged>false</logged>
<notes></notes>
<source>
<address exclude="false">
<containerId>network-43</containerId>
</address>
</source>
<destination>
<address exclude="true">
<containerId>network-43</containerId>
</address>
<application>
<protocol>1</protocol>
<protocolName>ICMP</protocolName>
</application>
</destination>
</layer3FirewallRule>
<layer3FirewallRule disabled="false" precedence="default" id="1340">
<action>allow</action>
<logged>false</logged>
<notes></notes>
<source/>
<destination/>
</layer3FirewallRule>
</firewallConfiguration>
</VshieldAppConfiguration>
Example 6-9. Get configuration of only Layer 2 firewall rules:
GET https://<vsm-ip>/api/2.0/app/firewall/datacenter-21/config?list=config\&rulesType=LAYER3
ResponseBody:
<VshieldAppConfiguration>
<firewallConfiguration generationNumber="1312802020950" timestamp="1312802020950"
contextId="datacenter-21" provisioned="true">
<layer2FirewallRule disabled="false" precedence="high" id="1506">
<action>allow</action>
<logged>false</logged>
<notes></notes>
<destination>
Komentarze do niniejszej Instrukcji