|
| 1 | +## stackit beta alb-waf custom-rule-group generate-payload |
| 2 | + |
| 3 | +Generates a payload to create/update an ALB WAF custom rule group |
| 4 | + |
| 5 | +### Synopsis |
| 6 | + |
| 7 | +Generates a JSON payload with values to be used as --payload input for ALB WAF custom rule group creation or update. |
| 8 | +If --name is set, the payload is generated with the current values of the given custom rule group, to be used with the update command. If unset, a payload with default values for the create command is generated. |
| 9 | +See https://docs.api.stackit.cloud/documentation/alb-waf/version/v1 for information regarding the payload structure. |
| 10 | + |
| 11 | +``` |
| 12 | +stackit beta alb-waf custom-rule-group generate-payload [flags] |
| 13 | +``` |
| 14 | + |
| 15 | +### Examples |
| 16 | + |
| 17 | +``` |
| 18 | + Generate a payload with default values, and adapt it with custom values for the different configuration options |
| 19 | + $ stackit beta alb-waf custom-rule-group generate-payload --file-path ./payload.json |
| 20 | + <Modify payload in file, if needed> |
| 21 | + $ stackit beta alb-waf custom-rule-group create --payload @./payload.json |
| 22 | +
|
| 23 | + Generate a payload with the current values of an existing custom rule group, and adapt it with custom values for the different configuration options |
| 24 | + $ stackit beta alb-waf custom-rule-group generate-payload --name my-custom-rule-group --file-path ./payload.json |
| 25 | + <Modify payload in file> |
| 26 | + $ stackit beta alb-waf custom-rule-group update my-custom-rule-group --payload @./payload.json |
| 27 | +
|
| 28 | + Generate a payload with the current values of an existing custom rule group, and preview it in the terminal |
| 29 | + $ stackit beta alb-waf custom-rule-group generate-payload --name my-custom-rule-group |
| 30 | +``` |
| 31 | + |
| 32 | +### Options |
| 33 | + |
| 34 | +``` |
| 35 | + -f, --file-path string If set, writes the payload to the given file. If unset, writes the payload to the standard output |
| 36 | + -h, --help Help for "stackit beta alb-waf custom-rule-group generate-payload" |
| 37 | + -n, --name string If set, generates the payload with the current values of the given custom rule group (to be used with the update command). If unset, generates the payload with default values (to be used with the create command) |
| 38 | +``` |
| 39 | + |
| 40 | +### Options inherited from parent commands |
| 41 | + |
| 42 | +``` |
| 43 | + -y, --assume-yes If set, skips all confirmation prompts |
| 44 | + --async If set, runs the command asynchronously |
| 45 | + -o, --output-format string Output format, (one of: [json, pretty, none, yaml]) |
| 46 | + -p, --project-id string Project ID |
| 47 | + --region string Target region for region-specific requests |
| 48 | + --verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info") |
| 49 | +``` |
| 50 | + |
| 51 | +### SEE ALSO |
| 52 | + |
| 53 | +* [stackit beta alb-waf custom-rule-group](./stackit_beta_alb-waf_custom-rule-group.md) - Provides functionality for alb-waf Custom Rule Group |
| 54 | + |
0 commit comments