Durable Functions

Get durable function by ID or name

Changed on
get/projects/{id}/durable-functions/{functionId}

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    • HTTP bearer
    • or HTTP bearer

Path parameters

id, string uuid required

Project ID

functionId, string required

Durable function ID, or its name within the project

Response

Successful response

DurableFunction required

A durable function. Separate from Function because a durable function is invoked only through its own execution endpoints, so it has no invocation mode, HTTP auth mode, OpenAPI document or invoke URL, and it carries a durable configuration that a standard function has no field for.

id, string uuid required
project_id, string uuid required
name, string required
status, 'provisioning' | 'active' | 'failed' | 'deleting' required
provisioning_started_at, string date-time

Timestamp when the current provisioning phase started

visibility, 'private' | 'authenticated' | 'public' required

Who may start executions of this function through POST /durable-functions/{functionId}/executions, and read and stop them through GET /durable-functions/{functionId}/executions/{executionId} and its /stop: service keys at every level (a scoped key needs functions.invoke), signed-in users of the project from authenticated, and anon keys holding functions.invoke only at public. On the read and stop routes a service key holding *, the default, reaches every execution. A service key scoped to a list without * and an anon key reach the ones whose client token they send, which the start returns, and a signed-in user also the ones they started. The project-scoped routes under /projects/{id}/durable-functions take the project owner's token or a project access token, whatever this is set to.

Set it when the function is deployed. Durable functions have no update endpoint, so changing visibility later means redeploying.

A durable function is startable, never invocable: it is not reachable through POST /functions/{functionId}/invoke or a function URL, which answer 404 at every level.

is_public, boolean required

Deprecated. true exactly when visibility is public.

durable, DurableFunctionConfig required

Execution limits the function was created with, derived from the project's plan. Fixed for the life of the function: changing them means creating a new one.

The memory the function runs at, and the timeout on one attempt within an execution, also come from the plan but are not reported here: they are applied to the deployed function rather than recorded on it. Both are published per plan in the plans and limits guide.

deployed_regions, string[] required

Regions where this function is currently deployed

runtime, string
handler, string
current_deployment_id, string uuid

Identifier of the latest deployment operation

pending_deployment_id, string uuid

Newest queued deployment that will run after the current operation

last_invoked_at, string date-time

Most recent successful invocation timestamp

created_at, string date-time required
updated_at, string date-time required

Changes