Get logs for a resource by provider, resource type, and name.
Proxies log requests to the provider runtime that manages this resource.
Response modes:
- follow=false (default): Returns a JSON array of LogEntry objects
- follow=true: Returns an SSE stream of log events
SSE format (when follow=true):
event: log
data: {"timestamp": "...", "level": "info", "message": "..."}
Returns:
List of LogEntry objects (follow=false) or SSE StreamingResponse (follow=true).
Raises:
HTTPException: 504 on provider timeout, 502 on provider error or connection failure.
GET
/
resources
/
logs
Get Resource Logs
curl --request GET \
--url https://api.example.com/resources/logs