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” 
 ] 
} 
```