GET/services/{uuid}/databases/{database_uuid}/logs

Get logs for a service database

Retrieves Docker logs for a compose database container. Use lines to control how much of the log output you retrieve; access requires a token with the read:sensitive or root ability.

3 parameters
uuidstringrequired
The UUID of the service that contains the database.
database_uuidstringrequired
The UUID of the compose service database whose logs you want to retrieve.
linesintegeroptional
Number of log lines to return from the end of the logs, from -1 to 10000, or `all` to return all logs. The default is 100 when omitted; -1 remains available as a compatibility alias. Access requires a token with the `read:sensitive` or `root` ability.
Default:100

5 status codes
200Returns an object containing the database logs as a string.
logsstringoptional
400Returned when the token is invalid.
messagestringoptional
401Returned when the request is unauthenticated.
messagestringoptional
404Returned when the service or service database does not exist.
messagestringoptional
501Returned when Swarm is not supported.

Error handling

A 400 is returned for an invalid token, and a 401 when authentication is missing. A 404 is returned when the uuid path parameter or database_uuid path parameter does not identify a resource; a 501 is returned when Swarm is not supported. lines accepts an integer from -1 to 10000 or the value all; -1 is a compatibility alias, and the value defaults to 100 when omitted.