Skip to main content

Create a Syslog Server (Deprecated)

Select

SaaS
Customer Managed

deprecated

This endpoint has been deprecated and may be removed in future versions of the API.

This operation creates a syslog server.

More Details

Request Body required
  • enabled boolean
  • hostname string
  • port int32
  • syslogPolicy object[]
  • enabled boolean
  • name string
Responses

OK


Schema
  • errorMessage string
  • errorCode integer
POST /config    

Authorization

type: apiKeyname: Authtokenin: header

Request

Click Edit to configure Base URL
https://CommandCenterHostName/commandcenter/api
Security Scheme
token
Body required

{
"enabled": true,
"hostname": "{{hostname}}",
"port": 514,
"syslogPolicy": [
{
"enabled": false,
"name": "Alerts"
},
{
"enabled": true,
"name": "Audit"
},
{
"enabled": false,
"name": "Events"
}
]
}
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Config' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"enabled": true,
"hostname": "{{hostname}}",
"port": 514,
"syslogPolicy": [
{
"enabled": false,
"name": "Alerts"
},
{
"enabled": true,
"name": "Audit"
},
{
"enabled": false,
"name": "Events"
}
]
}'