Get Syslog Infos
GET /vdc/syslog/config
Get list of Syslog Server info.
Required Roles
Requires one of the following roles:
SYSTEM_ADMIN
SYSTEM_MONITOR
Response Body
Field |
Description |
Type |
Notes |
syslog_configuration |
|
|
|
syslog_server |
|
|
0-* Elements
|
id |
Syslog Id |
String |
|
server |
Fully qualified domain name or IP |
String |
|
port |
Syslog port |
Integer |
|
protocol |
Protocol Syslog protocol UDP/TCP |
String |
|
severity |
Severity - minimal syslog message severity for this server |
String |
|
Examples
Request
GET https://192.168.0.0:4443/vdc/syslog/config HTTP/1.1
Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<syslog_configuration>
<syslog_server>
<port>514</port>
<protocol>TCP</protocol>
<server>10.246.156.180</server>
<severity>info</severity>
<id>urn:storageos:SyslogServer:f7aad3d7-50ba-430e-b9ed-70a055a61c98</id>
</syslog_server>
</syslog_configuration>
Request
GET https://192.168.0.0:4443/vdc/syslog/config HTTP/1.1
Content-Type: application/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"syslog_configuration": {
"syslog_server": {
"port": 514,
"protocol": "TCP",
"server": "10.246.156.180",
"severity": "info",
"id": "urn:storageos:SyslogServer:f7aad3d7-50ba-430e-b9ed-70a055a61c98"
}
}
}
Request
curl -H $token -H "Content-Type: application/xml" -X GET https://$nodeIp:4443/vdc/syslog/config
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<syslog_configuration>
<syslog_server>
<port>514</port>
<protocol>TCP</protocol>
<server>10.246.156.180</server>
<severity>info</severity>
<id>urn:storageos:SyslogServer:f7aad3d7-50ba-430e-b9ed-70a055a61c98</id>
</syslog_server>
</syslog_configuration>