Updating the Syslog configuration

Updating the Syslog configuration
Updating the Syslog configuration

Set the Syslog configuration for OpsManager.

Request
URI
PUT
https://{opsmanager-installation}/api/v0/settings/syslog
COPY
Request Body
{
    "syslog": {
        "enabled": false,
        "address": "string",
        "port": "string",
        "transport_protocol": "string",
        "queue_size": 0,
        "tls_enabled": false,
        "permitted_peer": "string",
        "ssl_ca_certificate": "string",
        "environment": "string",
        "forward_debug_logs": false,
        "custom_rsyslog_configuration": "string"
    }
}
syslog
Optional

syslog

Responses
200

OK

{
    "syslog": "SyslogConfiguration Object"
}
syslog
Optional

syslog


400

Setup is not completed

Returns RequireSetupCompleted of type(s) application/json
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}

401

Unauthorized

Returns UnauthorizedResponse of type(s) application/json
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}

403

Forbidden

Returns ForbiddenResponse of type(s) application/json
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}

422

Unprocessable Content

Returns NestedErrorsResponseVariant of type(s) application/json
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}
object
errors
Optional

errors


Code Samples
COPY
                    curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v0/settings/syslog