Skip to main content

runtime_logs

Creates, updates, deletes, gets or lists a runtime_logs resource.

Overview​

Nameruntime_logs
TypeResource
Idvercel.deployments.runtime_logs

Fields​

The following fields are returned by SELECT queries:

Wrapper for non-JSON response bodies (jsonl, ndjson, streamed json, octet-stream): one row carrying the raw body text.

NameDatatypeDescription
contentsstringRaw response body.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectproject_id, deployment_idteam_id, slugReturns a stream of logs for a given deployment.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
deployment_idstring
project_idstring
slugstringThe Team slug to perform the request on behalf of.
team_idstringThe Team identifier to perform the request on behalf of. (wire: teamId)

SELECT examples​

Returns a stream of logs for a given deployment.

SELECT
contents
FROM vercel.deployments.runtime_logs
WHERE project_id = '{{ project_id }}' -- required
AND deployment_id = '{{ deployment_id }}' -- required
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;