Compute Node

Nodes are the compute units where algorithms and connectors run. They represent the infrastructure that executes your components, whether it's processing data or sending it elsewhere.

You can create, update, or delete nodes depending on your deployment needs. Managing nodes allows you to control where and how your components are executed, helping you scale and adapt your system to different environments.


Creating a Node

To create a function, you need to specify the following parameters:

Field
Description

name

The name of the function.

type

Defines where the function will run.

curl --request POST \
  --url https://api.splight.com/v3/engine/compute/nodes/all/ \
  --header 'authorization: Splight <access_id> <secret_key>' \
  --header 'content-type: application/json' \
  --data '{
    "name": "<node_name>",
    "type": "<node_type>"
}'

Reading a Node

Listing all Nodes

To list all nodes, you can use the following endpoint. This will return a list of all nodes in your account.

curl --request GET \
  --url https://api.splight.com/v3/engine/compute/nodes/all/ \
  --header 'authorization: Splight <access_id> <secret_key>' \

Retrive a single Node

To retrieve a single node, you can use the node ID in the URL. This will return detailed information about that specific node.

curl --request GET \
  --url https://api.splight.com/v3/engine/compute/nodes/all/<node_id>/ \
  --header 'authorization: Splight <access_id> <secret_key>' \

Updating a Node

To update a node, you can use the following endpoint. This will allow you to modify the properties of an existing node.

curl --request PATCH \
  --url https://api.splight.com/v3/engine/compute/nodes/all/<node_id>/ \
  --header 'authorization: Splight <access_id> <secret_key>' \
  --header 'content-type: application/json' \
  --data '{
    "name": "<new_node_name>",
    "type": "<new_node_type>"
}'

Deleting a Node

To delete a node, you can use the following endpoint. This will remove the specified node from your account.

curl --request DELETE \
  --url https://api.splight.com/v3/engine/compute/nodes/all/<node_id>/ \
  --header 'authorization: Splight <access_id> <secret_key>' \

Last updated

Was this helpful?