Update Logsink for a Database Cluster
To update a logsink for a database cluster, send a PUT 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
Request body
Example request
{
"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"
}
}Response
The action was successful and the response body is empty.
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
- ○