Actions
Bug #27300
openrudder-server-8.3.2: API "rudder/api/latest/nodes/{id}" dosn't return properties[]
Status:
New
Priority:
N/A
Assignee:
-
Category:
API
Target version:
-
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No
Description
I'm evaluating "node-inventory-received-pending" hook to auto-accept new nodes.
The example "auto-accept-nodes.example" shows the trick on how to query global parameter through the node properties.
But the query (at least, to the root node) returns empty properties set:
# curl -X GET -H @/var/rudder/run/api-token-header -H "Content-Type: application/json" "http://localhost:8080/rudder/api/latest/nodes/root?include=minimal,properties" | jq . { "action": "nodeDetails", "id": "root", "result": "success", "data": { "nodes": [ { "id": "root", "hostname": "rudder83.tld", "status": "accepted", "properties": [] } ] } }
While 3 properties are set for the "root" node, as it's seen in the web interface:

- Also, API "/rudder/api/latest/parameters" returns 3 global parameters.
Files
Actions