
vShield API Programming Guide
48 VMware, Inc.
Managing the Connection to a Syslog Server
YoucanconnectavShieldEdgetoasyslogserverforvShieldEdgelogmanagement.
Forthetrafficstatisticsschema,see“SyslogSchema”onpage 85.
Post a Syslog Server Configuration
Example 5-62. Posting a Syslog Server Configuration
Request:
POST <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/syslog/config
<VShieldEdgeConfig>
<SyslogServerConfig>
<ipAddress>A.B.C.D</ipAddress>
.....
.....
</SyslogServerConfig>
</VShieldEdgeConfig>
Rules:
Youcanadduptotwosyslogservers.
Example:
POST /api/1.0/network/network-244/syslog/config
Content-Type: application/xml
Authorization: Basic YWRtaW46ZGVmYXVsdA==
Host: localhost:9998
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Content-Length: 173
<?xml version="1.0" encoding="UTF-8"
standalone="yes"?><VShieldEdgeConfig><SyslogServerConfig><ipAddress>10.112.196.123
</ipAddress></SyslogServerConfig></VShieldEdgeConfig>
Get the Current Syslog Server Configuration
Example 5-63. Getting the Running Syslog Server Configuration
Request:
GET <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/syslog/config
Get Timestamps of Last 10 Syslog Server Configurations
Example 5-64. Getting Last 10 Syslog Server Configurations by Timestamp
Request:
GET <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/syslog/snapshots
Commenti su questo manuale