vShield API Programming Guide
Managing the Connection to a Syslog Server
You can connect a vShield Edge to a syslog server for vShield Edge log management.
For the traffic statistics schema, see "Syslog Schema" on page 88.
Post a Syslog Server Configuration
Example 5-60. Posting a Syslog Server Configuration
Request:
POST <vshield_manager-uri>/api/1.0/network/<portgroup-moid>/syslog/config
<VShieldEdgeConfig>
<SyslogServerConfig>
<ipAddress>A.B.C.D</ipAddress>
.....
.....
</SyslogServerConfig>
</VShieldEdgeConfig>
Rules:
You can add up to two syslog servers.
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"
Get the Current Syslog Server Configuration
Example 5-61. Getting the Running Syslog Server Configuration
Request:
GET <vshield_manager-uri>/api/1.0/network/<portgroup-moid>/syslog/config
Get Timestamps of Last 10 Syslog Server Configurations
Example 5-62. Getting Last 10 Syslog Server Configurations by Timestamp
Request:
GET <vshield_manager-uri>/api/1.0/network/<portgroup-moid>/syslog/snapshots
50
standalone="yes"?><VShieldEdgeConfig><SyslogServerConfig><ipAddress>10.112.196.123
</ipAddress></SyslogServerConfig></VShieldEdgeConfig>
VMware, Inc.
Need help?
Do you have a question about the VSHIELD APP 1.0 - API and is the answer not in the manual?
Questions and answers