Get functions runtime env status
const url = 'https://api.deploybase.eu/api/v1/api/v1/projects/example/functions/env/status';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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 reaches warm HTTP functions by restarting them, so “applied” turns true once the restart has rolled out; a function scaled to zero picks the new set up when it next starts.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Project ID
Responses
Section titled “ Responses ”OK
object
object
object
object
Applied means the function runs with the project’s current runtime env set: for a deployed HTTP function, its Deployment carries the current env hash and the controller has acted on it; for any other function, its Secret does (every queued invocation reads the Secret fresh).
Ready is an HTTP function’s serving state, the same answer as its deployment status. Absent for background functions, which run nothing between invocations.
Example
{ "data": { "functions": [ { "kind": "background" } ] }}Unauthorized
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Not Found
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Service Unavailable
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Live 174db30c built