Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
e27a3e3
feature: add command and sub-commands for security groups
bahkauv70 Dec 4, 2024
4dceff5
feature: implement create command
bahkauv70 Dec 5, 2024
60653ff
feature: add list command
bahkauv70 Dec 5, 2024
784c4b0
fixup: check name length
bahkauv70 Dec 5, 2024
9597756
fixup: added placeholder for client invocation
bahkauv70 Dec 5, 2024
8add98e
feature: implement calling service and output of results
bahkauv70 Dec 5, 2024
43d5c10
feature: implement calling service and output of results for list
bahkauv70 Dec 6, 2024
64683e6
feature: move command to beta package
bahkauv70 Dec 6, 2024
deadda4
feature: removed duplicate invocation of API
bahkauv70 Dec 6, 2024
6340e35
feature: completed delete command
bahkauv70 Dec 6, 2024
643099b
feature: renamed package to conform to standards
bahkauv70 Dec 6, 2024
41c4e1b
feature: refactored tests to reused actual cobra command
bahkauv70 Dec 6, 2024
0d32482
feature: refactored flag initialization
bahkauv70 Dec 6, 2024
cde67b0
feature: implemented update command
bahkauv70 Dec 6, 2024
55b2f28
feature: implemented describe command
bahkauv70 Dec 6, 2024
f2fc1dc
feature: fixed parsing of global flags
bahkauv70 Dec 9, 2024
9392cd3
feature: fix list command
bahkauv70 Dec 9, 2024
3aa6eab
feature: fixed describe command
bahkauv70 Dec 9, 2024
1b5d90b
feature: fixed typo
bahkauv70 Dec 9, 2024
a2f3617
feature: updated generated documentation
bahkauv70 Dec 9, 2024
41ad303
feature: fix review comments
bahkauv70 Dec 9, 2024
a90f3c5
feature: refresh documentation
bahkauv70 Dec 10, 2024
dae9cd0
feature: fix a regression in list command
bahkauv70 Dec 10, 2024
1eaa756
feature: fix regressions
bahkauv70 Dec 11, 2024
0976afc
feature: implemented review suggestions
bahkauv70 Dec 12, 2024
f77a9d6
restructed security-group command
bahkauv70 Dec 12, 2024
f286095
feature: updated documentation
bahkauv70 Dec 12, 2024
d457992
feature: restructured sub commands to canonical structure
bahkauv70 Dec 12, 2024
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
2 changes: 1 addition & 1 deletion docs/stackit_beta.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ stackit beta [flags]
* [stackit beta network-area](./stackit_beta_network-area.md) - Provides functionality for STACKIT Network Area (SNA)
* [stackit beta network-interface](./stackit_beta_network-interface.md) - Provides functionality for network interfaces
* [stackit beta public-ip](./stackit_beta_public-ip.md) - Provides functionality for public IPs
* [stackit beta security-group](./stackit_beta_security-group.md) - Provides functionality for security groups
* [stackit beta security-group](./stackit_beta_security-group.md) - Manage security groups
* [stackit beta server](./stackit_beta_server.md) - Provides functionality for servers
* [stackit beta sqlserverflex](./stackit_beta_sqlserverflex.md) - Provides functionality for SQLServer Flex
* [stackit beta volume](./stackit_beta_volume.md) - Provides functionality for volumes
Expand Down
9 changes: 7 additions & 2 deletions docs/stackit_beta_security-group.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## stackit beta security-group

Provides functionality for security groups
Manage security groups

### Synopsis

Provides functionality for security groups.
Manage the lifecycle of security groups and rules.

```
stackit beta security-group [flags]
Expand All @@ -29,5 +29,10 @@ stackit beta security-group [flags]
### SEE ALSO

* [stackit beta](./stackit_beta.md) - Contains beta STACKIT CLI commands
* [stackit beta security-group create](./stackit_beta_security-group_create.md) - Creates security groups
* [stackit beta security-group delete](./stackit_beta_security-group_delete.md) - Deletes a security group
* [stackit beta security-group describe](./stackit_beta_security-group_describe.md) - Describes security groups
* [stackit beta security-group list](./stackit_beta_security-group_list.md) - Lists security groups
* [stackit beta security-group rule](./stackit_beta_security-group_rule.md) - Provides functionality for security group rules
* [stackit beta security-group update](./stackit_beta_security-group_update.md) - Updates a security group

46 changes: 46 additions & 0 deletions docs/stackit_beta_security-group_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## stackit beta security-group create

Creates security groups

### Synopsis

Creates security groups.

```
stackit beta security-group create [flags]
```

### Examples

```
Create a named group
$ stackit beta security-group create --name my-new-group

Create a named group with labels
$ stackit beta security-group create --name my-new-group --labels label1=value1,label2=value2
```

### Options

```
--description string An optional description of the security group.
-h, --help Help for "stackit beta security-group create"
--labels stringToString Labels are key-value string pairs which can be attached to a network-interface. E.g. '--labels key1=value1,key2=value2,...' (default [])
--name string The name of the security group.
--stateful Create a stateful or a stateless security group
```

### 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
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta security-group](./stackit_beta_security-group.md) - Manage security groups

39 changes: 39 additions & 0 deletions docs/stackit_beta_security-group_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
## stackit beta security-group delete

Deletes a security group

### Synopsis

Deletes a security group by its internal ID.

```
stackit beta security-group delete [flags]
```

### Examples

```
Delete a named group with ID "xxx"
$ stackit beta security-group delete xxx
```

### Options

```
-h, --help Help for "stackit beta security-group 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
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta security-group](./stackit_beta_security-group.md) - Manage security groups

39 changes: 39 additions & 0 deletions docs/stackit_beta_security-group_describe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
## stackit beta security-group describe

Describes security groups

### Synopsis

Describes security groups by its internal ID.

```
stackit beta security-group describe [flags]
```

### Examples

```
Describe group "xxx"
$ stackit beta security-group describe xxx
```

### Options

```
-h, --help Help for "stackit beta security-group 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
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta security-group](./stackit_beta_security-group.md) - Manage security groups

43 changes: 43 additions & 0 deletions docs/stackit_beta_security-group_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## stackit beta security-group list

Lists security groups

### Synopsis

Lists security groups by its internal ID.

```
stackit beta security-group list [flags]
```

### Examples

```
List all groups
$ stackit beta security-group list

List groups with labels
$ stackit beta security-group list --label-selector label1=value1,label2=value2
```

### Options

```
-h, --help Help for "stackit beta security-group list"
--label-selector string Filter by label
```

### 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
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta security-group](./stackit_beta_security-group.md) - Manage security groups

2 changes: 1 addition & 1 deletion docs/stackit_beta_security-group_rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ stackit beta security-group rule [flags]

### SEE ALSO

* [stackit beta security-group](./stackit_beta_security-group.md) - Provides functionality for security groups
* [stackit beta security-group](./stackit_beta_security-group.md) - Manage security groups
* [stackit beta security-group rule create](./stackit_beta_security-group_rule_create.md) - Creates a security group rule
* [stackit beta security-group rule delete](./stackit_beta_security-group_rule_delete.md) - Deletes a security group rule
* [stackit beta security-group rule describe](./stackit_beta_security-group_rule_describe.md) - Shows details of a security group rule
Expand Down
45 changes: 45 additions & 0 deletions docs/stackit_beta_security-group_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
## stackit beta security-group update

Updates a security group

### Synopsis

Updates a named security group

```
stackit beta security-group update [flags]
```

### Examples

```
Update the name of group "xxx"
$ stackit beta security-group update xxx --name my-new-name

Update the labels of group "xxx"
$ stackit beta security-group update xxx --labels label1=value1,label2=value2
```

### Options

```
--description string An optional description of the security group.
-h, --help Help for "stackit beta security-group update"
--labels stringToString Labels are key-value string pairs which can be attached to a network-interface. E.g. '--labels key1=value1,key2=value2,...' (default [])
--name string The name of the security group.
```

### 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
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta security-group](./stackit_beta_security-group.md) - Manage security groups

Loading
Loading