GET /v2/sandboxes/{sandboxID}/logs
Sandbox logs (v2)
Get sandbox logs
Параметры
sandboxID·string· путь · обязательноpageCursor·string· запрос · необязательноOpaque continuation cursor returned as nextCursor by the previous page
Максимальная длина:
512cursor·integer· запрос · необязательноStarting timestamp of the logs that should be returned in milliseconds
Формат:
int64Минимум:
0limit·integer· запрос · необязательноMaximum number of logs that should be returned
Формат:
int32По умолчанию:
1000Минимум:
0Максимум:
1000direction·LogsDirection· запрос · необязательноDirection of the logs that should be returned
Допустимые значения для
LogsDirection:forward|backwardlevel·LogLevel· запрос · необязательноMinimum log level to return. Logs below this level are excluded
Допустимые значения для
LogLevel:debug|info|warn|errorsearch·string· запрос · необязательноCase-sensitive substring match on log message content
Максимальная длина:
256
Ответы
200
Successfully returned the sandbox logs
Content-Type: application/json
Схема: SandboxLogsV2Response
logs·array<SandboxLogEntry>· обязательноSandbox logs structured
По умолчанию:
[]logs.id·string· необязательноStable identifier used to reconcile overlapping live log pages
logs.timestamp·string· обязательноTimestamp of the log entry
Формат:
date-timelogs.message·string· обязательноLog message content
logs.level·LogLevel· обязательноState of the sandbox
Допустимые значения для
LogLevel:debug|info|warn|errorlogs.fields·object· обязательноlogs.fields.*·string· additional propertynextCursor·string· необязательноOpaque continuation cursor for the next page
401
Authentication error
Content-Type: application/json
Схема: Error
code·integer· обязательноError code
Формат:
int32message·string· обязательноError
404
Not found
Content-Type: application/json
Схема: Error
code·integer· обязательноError code
Формат:
int32message·string· обязательноError
500
Server error
Content-Type: application/json
Схема: Error
code·integer· обязательноError code
Формат:
int32message·string· обязательноError