@efficientip/node-red-eip-sds
v0.1.8
Published
A set of nodes to access and interact with EfficientIP SOLIDserver using the API
Downloads
6
Maintainers
Readme
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
- Space
- DNS
- Zone
- list
- info
- count
- RR
- list
- info
- count
- Zone
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"
}