VMware VSHIELD APP 1.0 - API Uživatelský manuál Strana 46

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 132
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 45
vShield API Programming Guide
46 VMware, Inc.
vshieldEdgeConfig xmlns="vmware.vshield.edge.2.0">
<dhcpConfig>
<binding>
<vmId>vm-21</vmId>
<interfaceId>1</interfaceId>
<hostName>DlpServer</hostName>
<internalIpAddress>192.168.10.11</internalIpAddress>
<configParams>
<domainName>test.com</domainName>
<primaryNameServer>10.112.0.1</primaryNameServer>
<secondaryNameServer>10.112.0.2</secondaryNameServer>
</configParams>
</binding>
<pool>
<ipRange>192.168.10.2-192.168.10.10</ipRange>
<configParams>
<leaseTime>infinite</leaseTime>
</configParams>
</pool>
</dhcpConfig>
</vshieldEdgeConfig>
Manage the DHCP Service
TostartDHCPservice,specifyup.TostopDHCPservice,specifydown.
Example 5-8. Start DHCP service
POST https://<vsm-ip>/api/2.0/networks/<internal-portgroup-vc-moref-id>/edge
<vshieldEdgeConfig xmlns="vmware.vshield.edge.2.0">
<dhcpService>up</dhcpService>
</vshieldEdgeConfig>
Example 5-9. Stop DHCP service
POST https://<vsm-ip>/api/2.0/networks/<internal-portgroup-vc-moref-id>/edge
<vshieldEdgeConfig xmlns="vmware.vshield.edge.2.0">
<dhcpService>down</dhcpService>
</vshieldEdgeConfig>
Delete DHCP Configuration
Example 5-10. Delete DHCP configuration
POST https://<vsm-ip>/api/2.0/networks/<internal-portgroup-vc-moref-id>/edge
<vshieldEdgeConfig xmlns="vmware.vshield.edge.2.0">
<dhcpConfig/>
</vshieldEdgeConfig>
Configure Firewall
ThevShieldEdgeprovidesfirewallprotectionforincomingandoutgoingsessions.Inadditiontothedefault
firewallpolicy,youcanconfigureasetofrulestoallowordenytrafficsessionstoandfromspecificsources
anddestinations.YoumanagethedefaultfirewallpolicyandfirewallrulestogetherforeachvShield
Edge
agent.YoumustspecifybothfirewallrulesanddefaultPolicytogetherwhenevermodifyingeitherofthem,
orelsetheoneyoudonotspecifywillbedeleted.
Firew allrulesforavShieldEdgeconfiguredbyusingRESTrequestsappe a runderthevShieldEdge>Firewall
tabfortheappropriatevShieldEdge
inthevShieldManageruserinterfaceandinthevSphereClientplugin.
FortheEdgefirewallschema,see“vShieldEdgeSchemas”onpage 116.SampleXMLrequestbody:
Zobrazit stránku 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 131 132

Komentáře k této Příručce

Žádné komentáře