POST Log Forwarder Testconnection
Tests if a log forwarding destination can be reached.
{
"host": "10.10.10.10",
"port": 9000,
"protocol": "cfapi",
"transportProtocol": "tcp",
"name": "test"
}
Test Successful.
Test failed.
{
"errorMessage": "Failed connection with 10.10.10.10:9000."
}
A message describing the error.
A code representing the type of error.
Dynamic error details, where the field name can vary depending on the request field and error code.
The request was refused because it lacks valid authentication
credentials. This can happen if the Authorization header
was missing, or if it contained an invalid session ID.
Obtain a new session ID and retry the request,
or make an unauthenticated request without the Authorization header.
"Invalid session ID"
The request was refused because the session ID has
expired. Obtain a new session ID from /api/v1/sessions.
"Login Timeout"
SSL connection failed.
{
"errorMessage": "SSL connection failed. Forwarding destination certificate is not trusted. Use \"acceptCert\":true in request to automatically accept not trusted certificate.",
"errorDetails": {
"errorMessage": "SSL connection failed. Forwarding destination certificate is not trusted. Use \"acceptCert\":true in request to automatically accept not trusted certificate.",
"errorCode": "TEST_ERROR"
}
}
A message describing the error.
A code representing the type of error.
Dynamic error details, where the field name can vary depending on the request field and error code.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v1/log-forwarder/testconnection