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.
- application/json
Request Body required
- enabled boolean
- hostname string
- port int32
syslogPolicy object[]
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
POST /config
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
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"
}
]
}'
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"
}
]
}'
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"
}
]
}'
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"
}
]
}'
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"
}
]
}'
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"
}
]
}'
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"
}
]
}'