-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bug_17292/api_documentation_is_lacking_of_a_json_based_…
…update_of_rule_directive_pr' into branches/rudder/6.0
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
curl --header "X-API-Token: yourToken" --header "Content-Type: application/json" --request POST 'https://rudder.example.com/rudder/api/latest/rules/17dadf50-6056-4c8b-a935-6b97d14b89a7' --d @payload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
type: object | ||
properties: | ||
id: | ||
type: string | ||
description: Rule id | ||
example: 0c1713ae-cb9d-4f7b-abda-ca38c5d643ea | ||
format: uuid | ||
displayName: | ||
type: string | ||
example: Security policy | ||
description: Rule name | ||
shortDescription: | ||
type: string | ||
example: Baseline applying CIS guidelines | ||
description: One line rule description | ||
longDescription: | ||
type: string | ||
example: This rules should be applied to all Linux nodes required basic hardening | ||
description: Rule documentation | ||
directives: | ||
type: array | ||
description: Directives linked to the rule | ||
items: | ||
type: string | ||
description: "Directive id" | ||
targets: | ||
type: array | ||
description: Groups linked to the rule | ||
items: | ||
type: string | ||
description: "Group id" | ||
enabled: | ||
type: boolean | ||
description: Is the rule enabled | ||
example: true | ||
system: | ||
type: boolean | ||
description: If true it is an internal Rudder rule | ||
example: false | ||
tags: | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
name: | ||
type: string | ||
description: Value of the `name` key | ||
example: value | ||
example: | ||
customer: MyCompany |