POST
/services/{uuid}/applications/{app_uuid}/logsGet service application logs
Retrieves Docker logs for a single compose service container. Use lines to choose how many lines to return, and provide a token with the read:sensitive or root ability to access the logs.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
uuidstringrequired
The unique identifier of the service containing the application.
app_uuidstringrequired
The unique identifier of the compose service application whose logs to retrieve.
linesintegeroptional
Number of lines to return from the end of the logs, an integer from -1 to 10000, or `all`. The value -1 is a compatibility alias. Defaults to 100 when omitted.
200Returns an object containing the Docker 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 application cannot be found.
messagestringoptional
501Returned when Swarm is not supported.
Error handling
A 400 is returned for an invalid token; a 401 when the request is unauthenticated; a 404 when the service or application is not found; and a 501 when Swarm is unsupported. The token must have the read:sensitive or root ability, and the lines query parameter accepts all or an integer from -1 to 10000; it defaults to 100.