How to bind an edge service to an edge node

Edge Services allows orchestrated services to be managed on your own edge nodes. To do so, you must have an edge service created and to bind it to an edge node.

go to how to create an edge service

You can create a relation between an edge node and an edge service using:


  1. Access Azion Console.
  2. On the upper-left corner of the page, open the Products menu, represented by three horizontal lines, and then select Edge Nodes.
  3. Select the edge node you want to bind to a service.
  4. Go to the Services tab.
  5. Choose the service.
  6. Click the Save button.

  1. Run the following GET request in your terminal, replacing [TOKEN VALUE] with your personal token and retrieve the edge node ID you wish to bind to an edge service:
Terminal window
curl --location 'https://api.azionapi.net/edge_nodes/' \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [TOKEN VALUE]'
  1. Run the following GET request in your terminal, replacing [TOKEN VALUE] with your personal token and retrieve the edge service ID you wish to bind to an edge node:
Terminal window
curl --location 'https://api.azionapi.net/edge_services/' \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [TOKEN VALUE]'
  1. Run the following POST request in your terminal:
Terminal window
curl --location 'https://api.azionapi.net/edge_nodes/:id/services' \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
--data '{
"service_id": 0,
"variables": [
{
"name": "string",
"value": "string"
}
]
}'

Replace [TOKEN VALUE] with your personal token, :id with the ID of the edge node informing the edge node ID and inform the following properties in the request body:

PropertyDescriptionRequired
service_idID of the edge service being bound to the edge nodeYes
variablesVariables to be replaced during the processing on the edge nodeNo (requires checking)

Now, your edge node and your edge service have a relation between them and are ready to be orchestrated.


Contributors