Skip to content

Get functions runtime env status

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

Returns the project’s runtime environment variable keys (never values) and, per active function, whether it runs with the current set. A variable change makes a new revision of each HTTP function, which starts on fresh instances while the old ones finish their requests, so “applied” turns true once that revision has been checked; a function with no instance running picks the new set up when it next starts.

id
required
string

Project ID

OK

Media type application/json
object
data
meta
object
request_id
string
timestamp
string
trace_id
string
data
object
applied_count
integer
functions
Array<object>
object
applied

Applied means the function runs with the project’s current runtime env set: for a deployed HTTP function, its route’s checked revision was rendered from the current env; for any other function, its Secret carries it (every queued invocation reads the Secret fresh).

boolean
function_id
string
kind
string
Allowed values: background http
name
string
ready

Ready is an HTTP function’s serving state, the same answer as its deployment status. Absent for background functions, which run nothing between invocations.

boolean
runtime_keys
Array<string>

Example

{
"data": {
"functions": [
{
"kind": "background"
}
]
}
}

Unauthorized

Media type application/json
object
code
string
details
docs_url
string
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
next_actions
Array<object>
object
action
string
cli
string
description
string
http
string
tool
string
reason

The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.

string
who_acts
string

Example generated

{
"code": "example",
"details": "example",
"docs_url": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
},
"next_actions": [
{
"action": "example",
"cli": "example",
"description": "example",
"http": "example",
"tool": "example"
}
],
"reason": "example",
"who_acts": "example"
}

Not Found

Media type application/json
object
code
string
details
docs_url
string
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
next_actions
Array<object>
object
action
string
cli
string
description
string
http
string
tool
string
reason

The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.

string
who_acts
string

Example generated

{
"code": "example",
"details": "example",
"docs_url": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
},
"next_actions": [
{
"action": "example",
"cli": "example",
"description": "example",
"http": "example",
"tool": "example"
}
],
"reason": "example",
"who_acts": "example"
}

Service Unavailable

Media type application/json
object
code
string
details
docs_url
string
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
next_actions
Array<object>
object
action
string
cli
string
description
string
http
string
tool
string
reason

The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.

string
who_acts
string

Example generated

{
"code": "example",
"details": "example",
"docs_url": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
},
"next_actions": [
{
"action": "example",
"cli": "example",
"description": "example",
"http": "example",
"tool": "example"
}
],
"reason": "example",
"who_acts": "example"
}

Live 582ac705 built