@efficientip/node-red-eip-sds

0.1.8 • Public • Published

Node-Red EIP SOLIDserver

This package is to integrate the SOLIDserver API calls into the node-red no code platform.

The main purpose is demonstration and prototyping. Probably the best way to use it is through the container embedding both node-red and the EIP nodes.

It uses the node SDS library created from the OpenAPI definition and published on npm. Therefore the node-red code is very light and only uses 2 nodes, one for the configuration of the connection to the SOLIDserver, the other to embed all the API calls.

You can import in node-red the demo flows located in the tests-flows folder.

API available

  • SDS version
  • IPAM
    • Space
      • list
      • info
      • count
    • IP v4
      • list
      • info
      • count
      • add
      • delete
      • edit
      • find free
    • IP v6
      • list
      • info
      • count
    • Network v4
      • list
      • info
      • count
    • Network v6
      • list
      • info
      • count
    • Pool v4
      • list
      • info
      • count
    • Pool v6
      • list
      • info
      • count
  • DNS
    • Zone
      • list
      • info
      • count
    • RR
      • list
      • info
      • count

event forwarder from SDS into an http endpoint node

Yoiu can use such a configuration on the rule 412 to push user tracking events to node-red.

[{
    "source": "user_tracking",
    "method": "POST",
    "filter": {
       "Event_Type": ".*",
       "Event_Name": "ip_.*"
     },
     "query": "/v1/ipam/ip/event",
    "headers": [{"Content-Type": "application/json"}]
  }]

A typical event as received in nodered on a HTTP endpoint node:

{
    "event_name": "ip_add",
    "event_time": "1712586714",
    "event_type": "EDIT",
    "params": {
        "class_name": "",
        "color": "red",
        "domain": "ach2021",
        "hostaddr": "172.16.0.3",
        "hostname": "nr-t-03",
        "mac_addr": "01%3A17%3A21%3A60%3A03%3A01",
        "name": "nr-t-03.ach2021",
        "old_mac_addr": "01%3A17%3A21%3A60%3A03%3A00",
        "site_name": "test"
    },
    "usr_login": "ipmadmin"
}

Package Sidebar

Install

npm i @efficientip/node-red-eip-sds

Weekly Downloads

10

Version

0.1.8

License

BSD-3-Clause

Unpacked Size

168 kB

Total Files

8

Last publish

Collaborators

  • achauvin