Actions
Bug #22017
closedError ir create node API example in docs
Pull Request:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No
Description
Hello,
it's me again :)
I try to create a nodes from the API endpoint and I meet a little error with the requests samples :
https://docs.rudder.io/api/v/16/#tag/Nodes/operation/createNodes
[ { "id": "378740d3-c4a9-4474-8485-478e7e52db52", "hostname": "my.node.hostname.local", "status": "accepted", "os": { "type": "linux", "name": "debian", "version": 9.5, "fullName": "Debian GNU/Linux 9 (stretch)", "servicePack": "string" }, "policyServerId": "root", "machineType": "vmware", "state": "enable", ...
If you use this you'll end up with :
"action": "createNodes", "result": "error", "errorDetails": { "created": [], "failed": [ { "378740d3-c4a9-4474-8485-478e7e52db52": [ "[validation] Node 'state' must be one of 'empty-policies, enabled, ignored, initializing, preparing-eol' but 'enable' provided" ] } ] }
Can you edit to change the payload example + the documentation ?
Best Regards,
Alexis TARUSSIO
Updated by Alexis TARUSSIO almost 2 years ago
- Subject changed from [API] Request Sample false to [API] Request Sample / documentation false
Updated by Elaad FURREEDAN almost 2 years ago
- Target version changed from 7.2.2 to 7.1.8
Updated by Elaad FURREEDAN almost 2 years ago
- Status changed from New to In progress
- Assignee set to Elaad FURREEDAN
Updated by Elaad FURREEDAN almost 2 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Elaad FURREEDAN to Alexis Mousset
- Pull Request set to https://github.com/Normation/rudder/pull/4551
Updated by Anonymous almost 2 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|6b82f4c77b193ebdc201d93d1807c0a36824331b.
Updated by Alexis Mousset almost 2 years ago
- Subject changed from [API] Request Sample / documentation false to Error ir create node API example in docs
- Fix check changed from To do to Checked
Updated by Vincent MEMBRÉ almost 2 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 7.1.8 and 7.2.2 which were released today.
Actions