EventNative has system endpoints for admins. For using it you should configure admin authorization.
server:admin_token: your_admin_tokendestinations:...
Put admin token to HTTP requests in X-Admin-Token header.
{"message": "pq: database \"my-db\" does not exist"}
{"message": "admin_token must be configured"}or{"message": "Admin token does not match"}
JSON body has the same structure as EventNative destination configuration. For example Postgres:
{"type": "postgres","datasource": {"host": "my_postgres_host","db": "my-db","schema": "myschema","port": 5432,"username": "user","password": "pass","parameters": {}}}
{"instances": [{"name": "instance1.domain.com"},{"name": "instance2.domain.com"}]}
{"message": "error getting cluster information: ..."}
{"message": "admin_token must be configured"}or{"message": "Admin token does not match"}
{"files": [{"file_name": "host-errors-destination1-2020-11-25T09-57-10.411.log","destination_id": "destination1","uploaded": false,// error - replaying error"error": "Error uploading host-errors-destination1-2020-11-25T09-57-10.411.log wrong format"}}
{"message": "admin_token must be configured"}or{"message": "Admin token does not match"}
{"status": "ok"}
{"message": "Failed to replay file: host-errors-d1-2020-11-25T09-57-10.411.log","error": "File name can't be empty"}
{"message": "admin_token must be configured"}or{"message": "Admin token does not match"}
Request JSON body example:
{"file_name": "hostname-destination1-2020-11-25T09-57-10.411.log"}