
vShield API Programming Guide
20 VMware, Inc.
Configure vShield Manager Syslog Server
YoucanconfigurevShieldManagertosendlogstoasyslogserver.Ifasyslogserverconfigurationexists,this
callupdatestheconfiguration.
Example 2-10. Configure vShield Manager syslog server
Request:
PUT https://<vsm-ip>/api/2.0/services/syslog/config
Request Body:
<?xml version="1.0" encoding="UTF-8"?>
<syslogServerConfig>
<serverInfo>10.112.200.100:1000</serverInfo>
</syslogServerConfig>
Get vShield Manager Syslog Server Configuration
YoucangetthevShieldManagersyslogserverconfiguration.
Example 2-11. Get vShield Manager syslog server configuration
Request:
GET https://<vsm-ip>/api/2.0/services/syslog/config
Delete vShield Manager Syslog Server Configuration
YoucandeletethevShieldManagersyslogserverconfiguration.
Example 2-12. Delete vShield Manager syslog server configuration
Request:
DELETE https://<vsm-ip>/api/2.0/services/syslog/config
Querying vShield Manager Logs
YoucanretrievevShieldManagersystemeventandauditlogs.
Get vShield Manager System Events
YoucanretrievevShieldManagersystemevents.
Example 2-13. Get vShieldManagersystemevents
Request:
GET https://<vsm-ip>/api/2.0/systemevent?startIndex=0\&pageSize=10
Where
start indexisanoptionalparameterwhichspecifiesthestartingpointforretrievingthelogs.Ifthis
parameterisnotspecified,logsareretrievedfromthebeginning.
page sizeisanoptionalparameterthatlimitsthemaximumnumberofentriesreturnedbytheAPI.The
defaultvalueforthisparameteris256andthevalidrangeis1‐1024.
Comentários a estes Manuais