Deploy a Function to the Edge

Management of Functions at the edge is done via API requests. See OpenAPI > ECP > Support Services > Functions for more information.

To deploy a Function to the edge, a POST request needs to be made as follows:
POST /support/faas/functions
With a minimum request body:
{ 
 "name": "<edge-function-name-as-built-on-the-cloud>" 
} 
 

This will deploy the Function that was built on the cloud side.

Optionally, environment values can be set and topics for the telemetry triggers (see section Invoke a Function > On a Telemetry Trigger):
{ 
  "name": "<edge-function-name-as-built-on-the-cloud>", 
  "env_vars": { 
    "var_1": "value_1" 
 }, 
  "topics": [ 
    "things/<thing-uid>/properties" 
 ] 
}