Depoyments
A deployment is a container for assets, environment variables, compiler options, and other data related to a deployed serverless application.
Get deployment details
/v1/deployments/{deploymentId}
Parameters
Name | Type | Description |
---|---|---|
deploymentId (required) | undefined | Deployment ID |
Responses
- Success (200)
- Invalid Request (400)
- Unauthorized (401)
- Not Found (404)
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
id | undefined | |
projectId | string (uuid) | |
status | undefined | |
domains | array | |
databases | object | The KV databases that this deployment has access to.
Currently, only |
createdAt | string (date-time) | |
updatedAt | string (date-time) |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Get deployment build logs
/v1/deployments/{deploymentId}/build_logs
The response format can be controlled by the
Accept
header. If application/x-ndjson
is specified, the response will be a stream of newline-delimited JSON objects. Otherwise it will be a JSON array of objects.Parameters
Name | Type | Description |
---|---|---|
deploymentId (required) | string | Deployment ID |
Responses
- Success (200)
- Invalid Request (400)
- Unauthorized (401)
- Not Found (404)
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
level | string | |
message | string |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Get deployment app logs
/v1/deployments/{deploymentId}/app_logs
since
and until
query parameters. If at least one of them is provided, past logs are returned. Otherwise real-time logs are returned.Also, the response format can be controlled by the
Accept
header. If application/x-ndjson
is specified, the response will be a stream of newline-delimited JSON objects. Otherwise, it will be a JSON array of objects.Parameters
Name | Type | Description |
---|---|---|
q | string | Text to search for in log message. |
level | undefined | Log level(s) to filter logs by. Defaults to all levels (i.e. no filter applied). Multiple levels can be specified using comma-separated format. |
region | undefined | Region(s) to filter logs by. Defaults to all regions (i.e. no filter applied). Multiple regions can be specified using comma-separated format. |
since | string (date-time) | Start time of the time range to filter logs by. Defaults to the Unix Epoch (though the log retention period is 2 weeks as of now). If neither |
until | string (date-time) | End time of the time range to filter logs by. Defaults to the current time. If neither |
limit | integer | Maximum number of logs to return in one request. This is only effective for the past log mode. |
order | undefined | Order of logs to return. |
cursor | string | Opaque value that represents the cursor of the last log returned in the previous request. This is only effective for the past log mode. |
deploymentId (required) | string | Deployment ID |
Responses
- Success (200)
- Invalid Request (400)
- Unauthorized (401)
- Not Found (404)
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
time | string (date-time) | Log timestamp |
level | undefined | |
message | string | |
region | undefined |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |