runtime_logs
Creates, updates, deletes, gets or lists a runtime_logs resource.
Overview​
| Name | runtime_logs |
| Type | Resource |
| Id | vercel.deployments.runtime_logs |
Fields​
The following fields are returned by SELECT queries:
- list
Wrapper for non-JSON response bodies (jsonl, ndjson, streamed json, octet-stream): one row carrying the raw body text.
| Name | Datatype | Description |
|---|---|---|
contents | string | Raw response body. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | project_id, deployment_id | team_id, slug | Returns 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.
| Name | Datatype | Description |
|---|---|---|
deployment_id | string | |
project_id | string | |
slug | string | The Team slug to perform the request on behalf of. |
team_id | string | The Team identifier to perform the request on behalf of. (wire: teamId) |
SELECT examples​
- list
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 }}'
;