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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 104
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 53
vShield API Programming Guide
54 VMware, Inc.
TheXMLresponserepresentstheDatacenterStateobject,containinganenumerationofdatacenterstatus.The
statecouldberegular,upgrading,migrating,backwardCompatible,orbackwardCompatibleReadyForSwitch.
Modify Datacenter State
YoucanchangethestateofadatacenteronlyifitisinthebackwardCompatibleReadyForSwitchstate.
Example 6-2. Change datacenter state to migrating
Example:
POST https://<vsm-ip>/api/2.0/app/firewall/datacenter-2/state
Configuring Firewall Rules for vCenter
TheprimaryfunctionofavShieldAppistoprovidefirewallprotectiononanESXhostbyinspectingeach
sessionandreturningdetailstothevShieldManager.Trafficdetailsincludesources,destinations,directionof
sessions,applications,andportsbeingused.Trafficdetailscanbeusedtocreatefirewallallowordeny
rules.
InthevShieldManageruserinterfaceorvSphereClientplugin,theAppFirewalltabcontainsthefirewall
rulesenforcedbyvShieldAppinstances.YoucanmanageAppFirewallrulesatthedatacenter,cluster,and
portgrouplevelstoprovideaconsistentsetofrulesacrossmultiplevShieldApp
instances.Asmembership
inthesecontainerscanchangedynamically,AppFirewallmaintainsthestateofexistingsessionswithout
requiringreconfigurationoffirewallrules.Inthisway,AppFirewalleffectivelyhasacontinuousfootprinton
eachESXhostunderthemanagedcontainers.
WhencreatingAppFirewallrules,youcancreategeneralrules
basedonincomingoroutgoingtrafficatthe
containerlev el.Forexample,youcancreatearuletodenyanytrafficfromout si de ofadatacenterthattargetsa
destinationwithinthedatacenter.Youcancreatearuletodenyanyincomingtrafficthatisnottaggedwitha
VLANID.
Allfirew allrulesconfiguredbyusingRESTrequestsappearundertheAppFirewalltabfortheapprop ria te
containerinthevShieldManageruserinterfaceandvSphereClientplugin.
ForthecompletefirewallXMLschema,see“vShieldAppFirewallSchema”onpage 82.
Configuring the vShield App Firewall
Firewallprecedenceishierarchicalateachlevel.Atthedatacenterlevel,choicesareDEFAULT,HIGH,orLOW.
AttheclusteranddvPortgrouplevel,firewallprecedenceisoftensettoNONE.
EachvShieldAppenforcesthefirewallrulesintoptobottomordering.AvShieldAppcheckseachtraffic
sessionagainstthe
topruleinthefirewalltablebeforemovingdownthesubsequentrulesinthetable.Thefirst
ruleinthetablethatmatchesthetrafficparametersisenforced.SeethevShieldAdministrationGuideformore
informationaboutthehierarchyofvShieldAppfirewallrules.
Query the Firewall Configuration
Youcanretrievethefirewallconfigurationassociatedwithadatacenter,cluster,ordvPortGroup.Thetemplate
fortheAPIisasfollows:
GET https://<vsm-ip>/api/2.0/app/firewall/<context>/config?list=<L>&precedence<P>&rulesType<R>&configId=<C>
where
<context>isthecontextIDofadatacenter,cluster,ordvPortGroup.
<L>isthelistingtype,oneofthefollowing:
statusforbriefcurrentstate
configforfirewallconfiguration(thedefault)
historyforconfigurationhistory
Przeglądanie stron 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 103 104

Komentarze do niniejszej Instrukcji

Brak uwag