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 #1

Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 7.1.7 to 7.1.8
Actions #2

Updated by Elaad FURREEDAN about 2 years ago

  • Target version changed from 7.1.8 to old 6.2 issues to relocate
Actions #3

Updated by Elaad FURREEDAN about 2 years ago

  • Status changed from New to In progress
Actions #4

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

Updated by Anonymous about 2 years ago

  • Status changed from Pending technical review to Pending release
Actions #6

Updated by Alexis Mousset almost 2 years ago

  • Fix check changed from To do to Checked
Actions #7

Updated by Alexis Mousset over 1 year ago

  • Status changed from Pending release to Released
Actions

Also available in: Atom PDF