Bug #16164
closed
We cannot get the rules categories with the API
Added by Nicolas CHARLES about 5 years ago.
Updated almost 5 years ago.
Effort required:
Very Small
Description
# curl -k "https://localhost/rudder/api/latest/rules/tree?prettify=true" -H "X-API-Token: $(cat /var/rudder/run/api-token)"
{
"action": "ruleDetails",
"id": "tree",
"result": "error",
"errorDetails": "Could not get Rule tree details cause is: Could not find Rule tree."
it is looking for rules with id tree ...
- Related to Bug #12712: API generate error 500 when try update a ruleCategory added
trying to get a Category that is not just below rootCategorie fails also
# curl -k "https://localhost/rudder/api/latest/rules/categories/ce4c7039-918e-4d06-9c9a-d9dfedee83fa?prettify=true" -H "X-API-Token: $(cat /var/rudder/run/api-token)"
{
"action": "getRuleCategoryDetails",
"result": "error",
"errorDetails": "Could not fetch Rule category '3ce4c7039-918e-4d06-9c9a-d9dfedee83fa' details <- could not find category '3ce4c7039-918e-4d06-9c9a-d9dfedee83fa' in category 'rootRuleCategory' <- cannot find parent category of ID '3ce4c7039-918e-4d06-9c9a-d9dfedee83fa'"
- Status changed from New to In progress
- Assignee set to Nicolas CHARLES
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to François ARMAND
- Pull Request set to https://github.com/Normation/rudder/pull/2587
- Status changed from Pending technical review to Pending release
- Name check changed from To do to Reviewed
- Fix check changed from To do to Checked
- Status changed from Pending release to Released
This bug has been fixed in Rudder 5.0.15 which was released today.
Also available in: Atom
PDF