database
List logs
Returns Managed Database service system-level logs by its {uuid} and optional query parameters {limit}, {offset} and {order}.
get/1.3/database/{uuid}/logs
Request
- Base URL: https://api.upcloud.com
- URL: https://api.upcloud.com/1.3/database/{uuid}/logs
- Auth: HTTP bearer
Path parameters
uuidstring uuid required
The unique identifier for the integration.
Example:01234567-89ab-cdef-0123-456789abcdef
Service UUID
Query parameters
limitinteger
Schema for a query parameter specifying the maximum number of entries to return (limit).
Example:10
Number of entries to receive at most.
offsetinteger
Schema for a query parameter specifying the offset for pagination.
Offset for retrieved results.
orderstring
Schema for a query parameter specifying the order.
Example:asc
Sort order
Response
OK
Example response
{
"first_log_offset": "123456",
"offset": "123460",
"logs": [
{
"hostname": "upcloud-doc-hostname",
"msg": "[10-1] pid=3328089,user=postgres,db=defaultdb,app=[unknown],client=[local] LOG: connection authorized: user=postgres database=defaultdb",
"time": "2022-01-21T13:07:23.687241Z",
"service": "postgresql-13.service"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.