Project

General

Profile

Actions

Bug #21935

open

Format of target group is wrong in API doc

Added by Elaad FURREEDAN 8 months ago. Updated 7 months ago.

Status:
Pending release
Priority:
N/A
Category:
Documentation
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
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 #1

Updated by Vincent MEMBRÉ 8 months ago

  • Target version changed from 7.1.7 to 7.1.8
Actions #2

Updated by Elaad FURREEDAN 8 months ago

  • Target version changed from 7.1.8 to 6.2.21
Actions #3

Updated by Elaad FURREEDAN 8 months ago

  • Status changed from New to In progress
Actions #4

Updated by Elaad FURREEDAN 8 months 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/4534
Actions #5

Updated by Anonymous 8 months ago

  • Status changed from Pending technical review to Pending release
Actions

Also available in: Atom PDF