
vShield API Programming Guide
16 VMware, Inc.
SynchronizationwithvCenterServerrequiresitsIPaddress(orURL)andadministratorlogincredentials.
SpecifyingDNSinformationisoptional.YoucansynchronizevShieldManagerwithjustvCenterServer.
Example 2-2. Synchronize the vShield Manager with vCenter Server
Request:
POST https://<vsm-ip>/api/2.0/global/config
RequestBody:
<vsmGlobalConfig xmlns="vmware.vshield.edge.2.0">
<vcInfo>
<ipAddress>10.112.196.22</ipAddress>
<userName>administrator</userName>
<password>123</password>
</vcInfo>
</vsmGlobalConfig>
Monitoring vShield Manager reachability
YoucanverifythatthevShieldManagerisreachable.
Example 2-3. Verify that the vShield Manager is reachable
Request:
GET https://<vsm-ip>/api/2.0/global/heartbeat
Retrieving Tech Support Logs
YoucanretrieveTechnicalSupportlogsfromthevShieldManagerandvShieldEdge.
Get the vShield Manager Technical Support Log File Path
YoucangetthepathtothediagnosticlogfileforthevShieldManager.Youcanthensendthediagnosticlogto
technicalsupportforassistanceintroubleshootinganissue.
Example 2-4. Get the Tech Support Log File Path for a vShield Manager
Request:
GET https://<vsm-ip>/api/2.0/global/techSupportLogs
Thetechnicalsupportlogisplacedinafileatthefollowingpath,howevertheRESTAPIhasnoprovisionfor
downloadingit,andwgetandcurldonothavepermissiontodownloadit,either.Youcanretrievethelog
withvShieldManagerbyclickingSettings&Reports>Configuration>
Support>[LogDownload]Initiate.
/tech_support_logs/vsm/vshield_mgr_support_<date_time>GMT.log.gz
Get the vShield Edge Technical Support Log File Path
YoucandownloadthediagnosticlogfromavShieldEdge.Youcanthensendthediagnosticlogtotechnical
supportforassistanceintroubleshootinganissue.
Example 2-5. Get the Tech Support Log File Path for a vShield Edge
Request:
Comentarios a estos manuales