Get Logsink for a Database Cluster
To get a logsink for a database cluster, send a GET request to /v2/databases/$DATABASE_ID/logsink/$LOGSINK_ID.
Path parameters
A unique identifier for a database cluster.
A unique identifier for a logsink of a database cluster
Response
A JSON object with a key of sink.
Example response
{
"sink": {
"sink_id": "dfcc9f57d86bf58e321c2c6c31c7a971be244ac7",
"sink_name": "prod-logsink",
"sink_type": "rsyslog",
"config": {
"server": "192.168.0.1",
"port": 514,
"format": "rfc5424",
"logline": "<%pri%>%timestamp:::date-rfc3339% %HOSTNAME% %app-name% %msg%",
"sd": "TOKEN tag=\"LiteralValue\"",
"ca": "-----BEGIN CERTIFICATE-----\\n...\\n-----END CERTIFICATE-----\\n",
"key": "-----BEGIN PRIVATE KEY-----\\n...\\n-----END PRIVATE KEY-----\\n",
"cert": "-----BEGIN CERTIFICATE-----\\n...\\n-----END CERTIFICATE-----\\n"
}
}
}Changes
Changed in 4 of the 8 revisions of this API.14
- ○
api tag
DigitalOcean-public.v2-new_Databasesaddedapi-tag-added
- ○
api tag
Databasesremovedapi-tag-removed
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
endpoint added
endpoint-added
This revision also has 70 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 436 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
This revision also has 70 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○