[BETA] Create RSyslog external integration endpoint

POST /dbaas-external-endpoint-rsyslog/{name}

[BETA] Create RSyslog external integration endpoint

application/json

Body Required

  • settings object

    Additional properties are allowed.

    Hide settings attributes Show settings attributes object
    • format string Required

      Message format

      Values are custom, rfc3164, or rfc5424.

    • key string

      PEM encoded client key

      Maximum length is 16384.

    • logline string

      Custom syslog message format

      Minimum length is 1, maximum length is 512. Format should match the following pattern: ^[ -~\t]+$.

    • server string Required

      Rsyslog server IP address or hostname

      Minimum length is 4, maximum length is 255.

    • ca string

      PEM encoded CA certificate

      Maximum length is 16384.

    • cert string

      PEM encoded client certificate

      Maximum length is 16384.

    • tls boolean Required

      Require TLS

    • port integer(int64) Required

      Rsyslog server port

      Minimum value is 1, maximum value is 65535.

    • sd string

      Structured data block for log message

      Maximum length is 1024.

    • max-message-size integer(int64)

      Rsyslog max message size

      Minimum value is 2048, maximum value is 2147483647.

Responses

  • 200 application/json

    200

    Hide response attributes Show response attributes object
    • id string(uuid)

      Operation ID

    • reason string

      Operation failure reason

      Values are incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, or conflict.

    • Related resource reference

      Additional properties are allowed.

      Hide reference attributes Show reference attributes object
      • id string(uuid)

        Reference ID

      • command string

        Command name

    • message string

      Operation message

    • state string

      Operation status

      Values are failure, pending, success, or timeout.

POST /dbaas-external-endpoint-rsyslog/{name}
curl \
 -X POST https://api-ch-gva-2.exoscale.com/v2/dbaas-external-endpoint-rsyslog/{name} \
 -H "Content-Type: application/json" \
 -d '{"settings":{"format":"custom","key":"string","logline":"string","server":"string","ca":"string","cert":"string","tls":true,"port":42,"sd":"string","max-message-size":42}}'
Request examples
{
  "settings": {
    "format": "custom",
    "key": "string",
    "logline": "string",
    "server": "string",
    "ca": "string",
    "cert": "string",
    "tls": true,
    "port": 42,
    "sd": "string",
    "max-message-size": 42
  }
}
Response examples (200)
{
  "id": "string",
  "reason": "incorrect",
  "reference": {
    "id": "string",
    "link": "string",
    "command": "string"
  },
  "message": "string",
  "state": "failure"
}