Project

General

Profile

Actions

Bug #21935

closed

Format of target group is wrong in API doc

Added by Elaad FURREEDAN about 2 years ago. Updated over 1 year ago.

Status:
Released
Priority:
N/A
Category:
Documentation
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

Also available in: Atom PDF