Appearance
Functions
Description
ToDo
Events
Following events are transmitted via the websocket.
Event that will be fired when a function config is created. This event requires read access to the resource functions.config.
| Name | Description |
|---|---|
typestringconstant | Constant value: FUNCTION_CONFIG_ADD |
idstring | UUIDv4 representing a function config |
namestring | The config human readable name Pattern: ^[0-9a-zA-Z\p{Letter}\p{Mark}\-._\s ]+$ |
nodesarray | |
edgesarray | |
edges.[ ].fromstring | |
edges.[ ].tostring | |
inputsdictionary |
API
EndpointsCreate Function ConfigurationGet Function ConfigurationList Function ConfigurationDelete Function ConfigurationPatch Function ConfigurationCreate Function InstanceDelete Function InstanceList of Function InstancesGet Function Instance StateGet Function Instance Node StateGet Function Instance Result State
POST
GET
GET
DEL
PATCH
POST
DEL
GET
GET
GET
GET
Create Function Configuration
Calling this endpoint will create a function config
POST
/api/v1/functions/config
Access
This endpoint requires create permission for the resource functions.config.
Request Body
| Name | Description |
|---|---|
namestring | The config human readable name Pattern: ^[0-9a-zA-Z\p{Letter}\p{Mark}\-._\s ]+$ |
nodesarray | |
edgesarray | |
edges.[ ].fromstring | |
edges.[ ].tostring |
Response
| Name | Description |
|---|---|
idstring | UUIDv4 representing a function config |
Get Function Configuration
To get a given function configuration, call this endpoint
GET
/api/v1/functions/config/:configIdentifier
Access
This endpoint requires read permission for the resource functions.config.
URL Parameter
| Name | Description |
|---|---|
configIdentifierstring | UUID v4 matching a given function |
Response
| Name | Description |
|---|---|
idstring | UUIDv4 representing a function config |
namestring | The config human readable name Pattern: ^[0-9a-zA-Z\p{Letter}\p{Mark}\-._\s ]+$ |
nodesarray | |
edgesarray | |
edges.[ ].fromstring | |
edges.[ ].tostring | |
inputsdictionary |
List Function Configuration
This endpoint will return a list of all current function configurations
GET
/api/v1/functions/config
Access
This endpoint requires read permission for the resource functions.config.
Query Parameter
| Name | Description |
|---|---|
depthintegeroptional | Due to the fact that some resources follow certain hierarchies, the depth query parameter can be used to include nested information in the response. This can be used to minimize roundtrips and is generally advised for. |
Response
| Name | Description |
|---|
Delete Function Configuration
This endpoint will remove a given function configuration based on id.
DELETE
/api/v1/functions/config/:configIdentifier
Access
This endpoint requires delete permission for the resource functions.config.
URL Parameter
| Name | Description |
|---|---|
configIdentifierstring | UUID v4 matching a given function |
Response
This endpoint simply returns Status 204 to indicate a successful operation and to save bandwidth.
Patch Function Configuration
This endpoint will patch a given function configuration based on id. Be aware that this will reset all corresponding instances.
PATCH
/api/v1/functions/config/:configIdentifier
Access
This endpoint requires update permission for the resource functions.config.
URL Parameter
| Name | Description |
|---|---|
configIdentifierstring | UUID v4 matching a given function |
Request Body
| Name | Description |
|---|---|
namestringoptional | The config human readable name Pattern: ^[0-9a-zA-Z\p{Letter}\p{Mark}\-._\s ]+$ |
nodesarrayoptional | |
edgesarrayoptional | |
edges.[ ].fromstring | |
edges.[ ].tostring |
Response
This endpoint simply returns Status 204 to indicate a successful operation and to save bandwidth.
Create Function Instance
Calling this endpoint will create a function instance
POST
/api/v1/functions/instances
Access
This endpoint requires create permission for the resource functions.instance.
Request Body
| Name | Description |
|---|---|
configIdentifierstring | UUIDv4 representing a function config |
parameterdictionaryoptional | Default: {} |
Response
| Name | Description |
|---|---|
idstring | UUIDv4 representing a function instance |
Delete Function Instance
When calling this endpoint the function instance that matches the instance identifier will be deleted
DELETE
/api/v1/functions/instances/:instanceIdentifier
Access
This endpoint requires delete permission for the resource functions.instance.
URL Parameter
| Name | Description |
|---|---|
instanceIdentifierstring | UUID v4 matching a given function instance |
Response
This endpoint simply returns Status 204 to indicate a successful operation and to save bandwidth.
List of Function Instances
When calling this endpoint a list of all known instances of functions is returned
GET
/api/v1/functions/instances
Access
This endpoint requires read permission for the resource functions.instance.
Query Parameter
| Name | Description |
|---|---|
depthintegeroptional | Due to the fact that some resources follow certain hierarchies, the depth query parameter can be used to include nested information in the response. This can be used to minimize roundtrips and is generally advised for. |
Response
| Name | Description |
|---|
Get Function Instance State
Returns the current state of a given function instance
GET
/api/v1/functions/instances/:instanceIdentifier
Access
This endpoint requires read permission for the resource functions.instance.
URL Parameter
| Name | Description |
|---|---|
instanceIdentifierstring | UUID v4 matching a given function instance |
Response
| Name | Description |
|---|---|
nodesarray | |
idstring | UUIDv4 representing a function instance |
configIdentifierstring | UUIDv4 representing a function config |
namestring | The config human readable name Pattern: ^[0-9a-zA-Z\p{Letter}\p{Mark}\-._\s ]+$ |
edgesarray | |
edges.[ ].fromstring | |
edges.[ ].tostring | |
parameterdictionaryoptional | Default: {} |
Get Function Instance Node State
Returns the current state of a given function instance node
GET
/api/v1/functions/instances/:instanceIdentifier/nodes/:nodeReferenceIdentifier
Access
This endpoint requires read permission for the resource functions.instance.
URL Parameter
| Name | Description |
|---|---|
nodeReferenceIdentifierstring | The reference given to the node |
instanceIdentifierstring | UUID v4 matching a given function instance |
Response
| Name | Description |
|---|
Get Function Instance Result State
A direct way of inspecting the result of a function instance. Does the same as calling functions/instances/UUID/nodes/RES_REF/state
GET
/api/v1/functions/instances/:instanceIdentifier/res
Access
This endpoint requires read permission for the resource functions.instance.
URL Parameter
| Name | Description |
|---|---|
instanceIdentifierstring | UUID v4 matching a given function instance |
Response
| Name | Description |
|---|