Skip to content
Merged
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Below you can find a list of the STACKIT services already available in the CLI (
| Service | CLI Commands | Status |
| ---------------------------------- |----------------------------------------------------------------| ------------------------- |
| Observability | `observability` | :white_check_mark: |
| Infrastructure as a Service (IaaS) | `beta network-area` <br/> `beta network` <br/> `beta volume` | :white_check_mark: (beta) |
| Infrastructure as a Service (IaaS) | `beta network-area` <br/> `beta network` <br/> `beta volume` <br/> `beta network-interface`| :white_check_mark: (beta) |
| Authorization | `project`, `organization` | :white_check_mark: |
| DNS | `dns` | :white_check_mark: |
| Kubernetes Engine (SKE) | `ske` | :white_check_mark: |
Expand Down
1 change: 1 addition & 0 deletions docs/stackit_beta.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ stackit beta [flags]
* [stackit](./stackit.md) - Manage STACKIT resources using the command line
* [stackit beta network](./stackit_beta_network.md) - Provides functionality for Network
* [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 Interface
* [stackit beta server](./stackit_beta_server.md) - Provides functionality for Server
* [stackit beta sqlserverflex](./stackit_beta_sqlserverflex.md) - Provides functionality for SQLServer Flex
* [stackit beta volume](./stackit_beta_volume.md) - Provides functionality for Volume
Expand Down
37 changes: 37 additions & 0 deletions docs/stackit_beta_network-interface.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## stackit beta network-interface

Provides functionality for Network Interface

### Synopsis

Provides functionality for Network Interface.

```
stackit beta network-interface [flags]
```

### Options

```
-h, --help Help for "stackit beta network-interface"
```

### 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](./stackit_beta.md) - Contains beta STACKIT CLI commands
* [stackit beta network-interface create](./stackit_beta_network-interface_create.md) - Creates a network interface
* [stackit beta network-interface delete](./stackit_beta_network-interface_delete.md) - Deletes a network interface
* [stackit beta network-interface describe](./stackit_beta_network-interface_describe.md) - Describes a network interface
* [stackit beta network-interface list](./stackit_beta_network-interface_list.md) - Lists all network interfaces of a network
* [stackit beta network-interface update](./stackit_beta_network-interface_update.md) - Updates a network interface

50 changes: 50 additions & 0 deletions docs/stackit_beta_network-interface_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
## stackit beta network-interface create

Creates a network interface

### Synopsis

Creates a network interface.

```
stackit beta network-interface create [flags]
```

### Examples

```
Create a network interface for network with ID "xxx"
$ stackit beta network-interface create --network-id xxx
Create a network interface with allowed addresses, labels, a name, security groups and nic security enabled for network with ID "xxx"
$ stackit beta network-interface create --network-id xxx --allowed-addresses "1.1.1.1,8.8.8.8,9.9.9.9" --labels key=value,key2=value2 --name NAME --security-groups "UUID1,UUID2" --nic-security
```

### Options

```
--allowed-addresses strings List of allowed IPs
-h, --help Help for "stackit beta network-interface create"
-i, --ipv4 string IPv4 address
-s, --ipv6 string IPv6 address
--labels stringToString Labels are key-value string pairs which can be attached to a network-interface. E.g. '--labels key1=value1,key2=value2,...' (default [])
-n, --name string Network interface name
--network-id string Network ID
-b, --nic-security If this is set to false, then no security groups will apply to this network interface. (default true)
--security-groups strings List of security groups
```

### 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 network-interface](./stackit_beta_network-interface.md) - Provides functionality for Network Interface

40 changes: 40 additions & 0 deletions docs/stackit_beta_network-interface_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## stackit beta network-interface delete

Deletes a network interface

### Synopsis

Deletes a network interface.

```
stackit beta network-interface delete [flags]
```

### Examples

```
Delete network interface with nic id "xxx" and network ID "yyy"
$ stackit beta network-interface delete xxx --network-id yyy
```

### Options

```
-h, --help Help for "stackit beta network-interface delete"
--network-id string Network ID
```

### 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 network-interface](./stackit_beta_network-interface.md) - Provides functionality for Network Interface

46 changes: 46 additions & 0 deletions docs/stackit_beta_network-interface_describe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## stackit beta network-interface describe

Describes a network interface

### Synopsis

Describes a network interface.

```
stackit beta network-interface describe [flags]
```

### Examples

```
Describes network interface with nic id "xxx" and network ID "yyy"
$ stackit beta network-interface describe xxx --network-id yyy

Describes network interface with nic id "xxx" and network ID "yyy" in JSON format
$ stackit beta network-interface describe xxx --network-id yyy --output-format json

Describes network interface with nic id "xxx" and network ID "yyy" in yaml format
$ stackit beta network-interface describe xxx --network-id yyy --output-format yaml
```

### Options

```
-h, --help Help for "stackit beta network-interface describe"
--network-id string Network ID
```

### 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 network-interface](./stackit_beta_network-interface.md) - Provides functionality for Network Interface

51 changes: 51 additions & 0 deletions docs/stackit_beta_network-interface_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
## stackit beta network-interface list

Lists all network interfaces of a network

### Synopsis

Lists all network interfaces of a network.

```
stackit beta network-interface list [flags]
```

### Examples

```
Lists all network interfaces with network ID "xxx"
$ stackit beta network-interface list --network-id xxx

Lists all network interfaces with network ID "xxx" which contains the label xxx
$ stackit beta network-interface list --network-id xxx --label-selector xxx

Lists all network interfaces with network ID "xxx" in JSON format
$ stackit beta network-interface list --network-id xxx --output-format json

Lists up to 10 network interfaces with network ID "xxx"
$ stackit beta network-interface list --network-id xxx --limit 10
```

### Options

```
-h, --help Help for "stackit beta network-interface list"
--label-selector string Filter by label
--limit int Maximum number of entries to list
--network-id string Network ID
```

### 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 network-interface](./stackit_beta_network-interface.md) - Provides functionality for Network Interface

51 changes: 51 additions & 0 deletions docs/stackit_beta_network-interface_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
## stackit beta network-interface update

Updates a network interface

### Synopsis

Updates a network interface.

```
stackit beta network-interface update [flags]
```

### Examples

```
Updates a network interface with nic id "xxx" and network-id "yyy" to new allowed addresses "1.1.1.1,8.8.8.8,9.9.9.9" and new labels "key=value,key2=value2"
$ stackit beta network-interface update xxx --network-id yyy --allowed-addresses "1.1.1.1,8.8.8.8,9.9.9.9" --labels key=value,key2=value2

Updates a network interface with nic id "xxx" and network-id "yyy" with new name "nic-name-new"
$ stackit beta network-interface update xxx --network-id yyy --name nic-name-new

Updates a network interface with nic id "xxx" and network-id "yyy" to include the security group "zzz"
$ stackit beta network-interface update xxx --network-id yyy --security-groups zzz
```

### Options

```
--allowed-addresses strings List of allowed IPs
-h, --help Help for "stackit beta network-interface 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 [])
-n, --name string Network interface name
--network-id string Network ID
-b, --nic-security If this is set to false, then no security groups will apply to this network interface. (default true)
--security-groups strings List of security groups
```

### 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 network-interface](./stackit_beta_network-interface.md) - Provides functionality for Network Interface

2 changes: 2 additions & 0 deletions internal/cmd/beta/beta.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/stackitcloud/stackit-cli/internal/cmd/beta/network"
networkArea "github.com/stackitcloud/stackit-cli/internal/cmd/beta/network-area"
networkinterface "github.com/stackitcloud/stackit-cli/internal/cmd/beta/network-interface"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/server"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/volume"
Expand Down Expand Up @@ -44,4 +45,5 @@ func addSubcommands(cmd *cobra.Command, p *print.Printer) {
cmd.AddCommand(networkArea.NewCmd(p))
cmd.AddCommand(network.NewCmd(p))
cmd.AddCommand(volume.NewCmd(p))
cmd.AddCommand(networkinterface.NewCmd(p))
}
Loading