Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/stackit_beta_alb-waf.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ stackit beta alb-waf [flags]
### SEE ALSO

* [stackit beta](./stackit_beta.md) - Contains beta STACKIT CLI commands
* [stackit beta alb-waf config](./stackit_beta_alb-waf_config.md) - Provides functionality for WAF configurations of the ALB WAF
* [stackit beta alb-waf custom-rule-group](./stackit_beta_alb-waf_custom-rule-group.md) - Provides functionality for custom rule groups of the ALB WAF
* [stackit beta alb-waf managed-rule-set](./stackit_beta_alb-waf_managed-rule-set.md) - Provides functionality for managed rule sets of the ALB WAF

37 changes: 37 additions & 0 deletions docs/stackit_beta_alb-waf_config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## stackit beta alb-waf config

Provides functionality for WAF configurations of the ALB WAF

### Synopsis

Provides functionality for Web Application Firewall (WAF) configurations for application loadbalancers.

```
stackit beta alb-waf config [flags]
```

### Options

```
-h, --help Help for "stackit beta alb-waf config"
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
```

### SEE ALSO

* [stackit beta alb-waf](./stackit_beta_alb-waf.md) - Manages the Web Application Firewall (WAF) for application loadbalancers
* [stackit beta alb-waf config create](./stackit_beta_alb-waf_config_create.md) - Creates an ALB WAF configuration
* [stackit beta alb-waf config delete](./stackit_beta_alb-waf_config_delete.md) - Deletes an ALB WAF configuration
* [stackit beta alb-waf config describe](./stackit_beta_alb-waf_config_describe.md) - Shows details of an ALB WAF configuration
* [stackit beta alb-waf config list](./stackit_beta_alb-waf_config_list.md) - Lists all ALB WAF configurations

47 changes: 47 additions & 0 deletions docs/stackit_beta_alb-waf_config_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
## stackit beta alb-waf config create

Creates an ALB WAF configuration

### Synopsis

Creates a STACKIT Application Load Balancer (ALB) Web Application Firewall (WAF) configuration.

```
stackit beta alb-waf config create [flags]
```

### Examples

```
Create an ALB WAF configuration with name "my-waf-config"
$ stackit beta alb-waf config create --name my-waf-config

Create an ALB WAF configuration with a managed rule set, a custom rule group and labels
$ stackit beta alb-waf config create --name my-waf-config --managed-rule-set-name my-managed-rule-set --custom-rule-group-name my-custom-rule-group --labels key1=value1,key2=value2
```

### Options

```
--custom-rule-group-name string Name of the custom rule group configuration to attach to the WAF
-h, --help Help for "stackit beta alb-waf config create"
--labels stringToString Labels are key-value string pairs which can be attached to the WAF configuration. E.g. '--labels key1=value1,key2=value2,...' (default [])
--managed-rule-set-name string Name of the managed rule set configuration to attach to the WAF
--name string Name of the WAF configuration
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
```

### SEE ALSO

* [stackit beta alb-waf config](./stackit_beta_alb-waf_config.md) - Provides functionality for WAF configurations of the ALB WAF

40 changes: 40 additions & 0 deletions docs/stackit_beta_alb-waf_config_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## stackit beta alb-waf config delete

Deletes an ALB WAF configuration

### Synopsis

Deletes a STACKIT Application Load Balancer (ALB) Web Application Firewall (WAF) configuration.

```
stackit beta alb-waf config delete NAME [flags]
```

### Examples

```
Delete an ALB WAF configuration with name "my-waf-config"
$ stackit beta alb-waf config delete my-waf-config
```

### Options

```
-h, --help Help for "stackit beta alb-waf config delete"
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
```

### SEE ALSO

* [stackit beta alb-waf config](./stackit_beta_alb-waf_config.md) - Provides functionality for WAF configurations of the ALB WAF

40 changes: 40 additions & 0 deletions docs/stackit_beta_alb-waf_config_describe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## stackit beta alb-waf config describe

Shows details of an ALB WAF configuration

### Synopsis

Shows details of a STACKIT Application Load Balancer (ALB) Web Application Firewall (WAF) configuration.

```
stackit beta alb-waf config describe NAME [flags]
```

### Examples

```
Show details of an ALB WAF configuration with name "my-waf-config"
$ stackit beta alb-waf config describe my-waf-config
```

### Options

```
-h, --help Help for "stackit beta alb-waf config describe"
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
```

### SEE ALSO

* [stackit beta alb-waf config](./stackit_beta_alb-waf_config.md) - Provides functionality for WAF configurations of the ALB WAF

44 changes: 44 additions & 0 deletions docs/stackit_beta_alb-waf_config_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
## stackit beta alb-waf config list

Lists all ALB WAF configurations

### Synopsis

Lists all STACKIT Application Load Balancer (ALB) Web Application Firewall (WAF) configurations.

```
stackit beta alb-waf config list [flags]
```

### Examples

```
List all ALB WAF configurations
$ stackit beta alb-waf config list

List the first 10 ALB WAF configurations
$ stackit beta alb-waf config list --limit=10
```

### Options

```
-h, --help Help for "stackit beta alb-waf config list"
--limit int Limit the output to the first n elements
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
```

### SEE ALSO

* [stackit beta alb-waf config](./stackit_beta_alb-waf_config.md) - Provides functionality for WAF configurations of the ALB WAF

2 changes: 2 additions & 0 deletions internal/cmd/beta/alb-waf/alb-waf.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package albwaf

import (
config "github.com/stackitcloud/stackit-cli/internal/cmd/beta/alb-waf/config"
customrulegroup "github.com/stackitcloud/stackit-cli/internal/cmd/beta/alb-waf/custom-rule-group"
managedruleset "github.com/stackitcloud/stackit-cli/internal/cmd/beta/alb-waf/managed-rule-set"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
Expand All @@ -27,5 +28,6 @@ func addSubcommands(cmd *cobra.Command, params *types.CmdParams) {
cmd.AddCommand(
managedruleset.NewCmd(params),
customrulegroup.NewCmd(params),
config.NewCmd(params),
)
}
32 changes: 32 additions & 0 deletions internal/cmd/beta/alb-waf/config/config.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package config

import (
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/alb-waf/config/create"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/alb-waf/config/delete"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/alb-waf/config/describe"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/alb-waf/config/list"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
"github.com/stackitcloud/stackit-cli/internal/pkg/types"
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"

"github.com/spf13/cobra"
)

func NewCmd(params *types.CmdParams) *cobra.Command {
cmd := &cobra.Command{
Use: "config",
Short: "Provides functionality for WAF configurations of the ALB WAF",
Long: "Provides functionality for Web Application Firewall (WAF) configurations for application loadbalancers.",
Args: args.NoArgs,
Run: utils.CmdHelp,
}
addSubcommands(cmd, params)
return cmd
}

func addSubcommands(cmd *cobra.Command, params *types.CmdParams) {
cmd.AddCommand(create.NewCmd(params))
cmd.AddCommand(delete.NewCmd(params))
cmd.AddCommand(describe.NewCmd(params))
cmd.AddCommand(list.NewCmd(params))
}
Loading