VMware VSHIELD APP 1.0 - API Instrukcja Użytkownika Strona 40

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 104
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 39
vShield API Programming Guide
40 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 88.SampleXMLrequestbody:
Przeglądanie stron 39
1 2 ... 35 36 37 38 39 40 41 42 43 44 45 ... 103 104

Komentarze do niniejszej Instrukcji

Brak uwag