Skip to main content
GET
cURL

인증

Authorization
string
header
기본값:Bearer {API_ACCESS_TOKEN}
필수

CoreWeave API access token sent as a bearer token.

경로 매개변수

sandboxId
string
필수

쿼리 매개변수

startTime
string<date-time>

Inclusive start of the time range. Defaults to one hour before the earlier of endTime and the effective read window's end. A request covers at most 24 hours and is narrowed to the read window. That window starts five minutes before log collection began and ends five minutes after the sandbox's terminal time (or the request time for a running sandbox). A range outside that window returns no lines.

endTime
string<date-time>

Exclusive end of the time range. Defaults to just after the effective read window ends, five minutes after the sandbox terminates, or five minutes after the request time while it runs.

container
string

Container name. Empty selects every workload container. Platform sidecar names are INVALID_ARGUMENT (CWSANDBOX_INVALID_REQUEST).

stream
enum<string>

Output stream. Unspecified selects both.

사용 가능한 옵션:
SANDBOX_LOG_STREAM_UNSPECIFIED,
SANDBOX_LOG_STREAM_STDOUT,
SANDBOX_LOG_STREAM_STDERR
textContains
string

Return only lines whose body contains this literal byte sequence (case sensitive, no wildcards). 3 to 256 bytes. Requires explicit start_time and end_time at most one hour apart.

pageSize
integer<int32>

Maximum entries per page. 0 means 100; values above 1000 are treated as 1000; negative values are INVALID_ARGUMENT. A page may hold fewer entries, so continue while next_page_token is set.

pageToken
string

nextPageToken from the previous page. Keep the time fields, container, stream, textContains, and order unchanged from the request that returned it. pageSize can change between pages. A token expires 60 minutes after it is issued.

order
enum<string>

Page order. Unspecified is ascending.

사용 가능한 옵션:
LIST_SANDBOX_LOGS_ORDER_UNSPECIFIED,
LIST_SANDBOX_LOGS_ORDER_ASC,
LIST_SANDBOX_LOGS_ORDER_DESC

응답

OK

entries
object[]
read-only
nextPageToken
string
read-only

Token for the next page; empty on the last page.

retentionExpiresAt
string<date-time>
read-only

When the stored logs stop being readable. Absent while the sandbox has not ended.