rds.instances.logsThe PostgreSQL server log from every node, newest first; filter by text, node or severity. Kept 7 days
Request syntax
GET /rds/api/instances/{id}/logsPath parameters
idRequiredstring
Constraints: 3-64 chars, /^(?!ewdoc-)[a-z0-9-]+$/
Query parameters
startOptionalstring
ISO time the lines start at; a day before end when omitted
endOptionalstring
ISO time the lines end at; now when omitted
containsOptionalstring
Only lines containing this text
Constraints: max 200 chars
nodeOptionalnumber
Only this node, by its ordinal (1 for the first); omitted: every node
Constraints: integer, 1-99
severityOptionalenum
Only lines of this severity; omitted: all
One of:
debug,info,notice,log,warning,error,fatal,paniclimitOptionalnumber
At most this many lines (default 200)
Constraints: integer, 1-1000
Response
200 with { start, end, events }: the time range searched and the lines, newest first, each with id, ts, node, severity and message.
A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.
Fields of data
startAlwaysstring
Start of the range searchedendAlwaysstring
End of the range searchedeventsAlwaysarray of object
Lines, newest firstevents[].idAlwaysnumber
Line idevents[].tsAlwaysstring
When it was loggedevents[].nodeAlwaysstring
Node it came from, e.g. node-1events[].severityAlwaysstring
Severity in capitals, e.g. ERRORevents[].messageAlwaysstring
The log line
Checked against the handlers: every route test validates their answers against this schema.
Errors
- 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
- 401No credentials, or an access key that is unknown, revoked or expired.
- 403The caller's policies do not allow rds:DescribeDBLogFiles on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
- 404The resource does not exist in your organization.
Examples
The required parameters only, with example values. Replace id and the other placeholders with your own.
dcloud rds instances logs idcurl -X GET "https://console.platform-development.deutschecloud.app/rds/api/instances/id/logs" \
-H "Authorization: EWS-ACCESS-KEY $ACCESS_KEY"Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_rds_instances_logs.