Actions
Bug #21935
closedFormat of target group is wrong in API doc
Status:
Released
Priority:
N/A
Assignee:
Category:
Documentation
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No
Description
In create rule, update rule
Currently, the doc say that the format is:
"targets": [ "string" ],
but the format has changed:
"targets": [ { "include": { "or": [ "group:all-nodes-with-cfengine-agent" ] }, "exclude": { "or": [ "special:all", "group:1989357f-343d-4003-a441-43ccb7799429" ] } } ]
We also have an error on the format of the response of the GET one rule, there is not an embed array, but an array of object :
"targets": [ [ <---- should be removed { "include": {...}, "exclude": {...} } ] <---- should be removed ]
Actions