
VMware, Inc. 43
5
YoucanmanagevShieldEdgeservicesandfirewallpolicieswiththeRESTAPI.YoucaninstallEdge,postand
deleteconfigurations,andgetstatusofvariousservices.
Thischapterincludesthefollowingtopics:
“ConfiguringvShieldEdge”onpage 43
“ConfiguringEdgeServices”onpage 45
“OperatingvShieldEdge”onpage 56
“DebuggingandSupport”onpage 57
Configuring vShield Edge
ThesetofAPIsinthissectionperformvShieldEdgeinstallation,configuration,anddeletion.
List vShield Edge Installations
ThiscallreturnsalistofallthevShieldEdgeappliancesinstalledbyvShieldManager.
Example 5-1. Get the vShield Edge installations
Request:
GET https://<vsm-ip>/api/2.0/networks/edge/capability
ForeachvShieldEdge,itshowscapabilityfortheVPN,loadbalancer,NAT,firewall,DHCP,andstaticrouting.
ItsaysonwhatdvPortGrouptheEdgeisinstalled,theEdgeversionnumber,andcompatibilitymode.
Determine API Version
ThiscalldeterminestheAPIversionthatthevShieldEdgecanprocess.IftheEdgeisworkinginbackward
compatiblemode,only1.0versionAPIsareallowed.IftheEdgeisworkinginregularmode,only2.0version
APIsareallowed.Tostartaccepting2.0APIs,see“SwitchtoNewAPI
Version”onpage 44.
Example 5-2. Determine API version
Request:
GET https://<vsm-ip>/api/versions/edge/<internal-portgroup-vc-moref-id>
vShield Edge Management
5
IMPORTANTAllvShieldRESTrequestsrequireauthorization.See“UsingthevShieldRESTAPI”onpage 15
fordetailsaboutbasicauthorization.
Komentáře k této Příručce