Skip to content

Get invocation

GET
/api/v1/projects/{id}/functions/{functionId}/invocations/{invocationId}
curl --request GET \
--url https://api.deploybase.eu/api/v1/api/v1/projects/example/functions/example/invocations/example \
--header 'Authorization: <Authorization>'

Returns a single function invocation by ID. Requires the member role or above.

id
required
string

Project ID

functionId
required
string

Function ID

invocationId
required
string

Invocation ID

OK

Media type application/json
object
data
meta
object
request_id
string
timestamp
string
trace_id
string
data
object
created_at
string
error_message
string
finished_at
string
id
string
log_output
string
response_body
Array<integer>
response_headers
object
key
additional properties
any
response_status
integer
scheduled_for

ScheduledFor is the nominal cron slot of a scheduled run, or the moment of a “run now”.

string
started_at
string
status
string
Allowed values: pending running completed failed cancelled timed_out
trigger

Trigger is the door that created the invocation (DEP-247): queued, schedule or schedule_manual. Absent on rows written before DEP-247.

string
Allowed values: queued schedule schedule_manual

Example

{
"data": {
"status": "pending",
"trigger": "queued"
}
}

Bad Request

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Forbidden

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Not Found

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Internal Server Error

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Live a8b7eb1d built