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
1 change: 1 addition & 0 deletions docs/stackit_alpha_vpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ stackit alpha vpc [flags]
* [stackit alpha vpc delete](./stackit_alpha_vpc_delete.md) - Deletes a VPC
* [stackit alpha vpc describe](./stackit_alpha_vpc_describe.md) - Shows details of a VPC
* [stackit alpha vpc list](./stackit_alpha_vpc_list.md) - Lists all VPC of a project
* [stackit alpha vpc network-range](./stackit_alpha_vpc_network-range.md) - Provides functionality for network ranges in VPC
* [stackit alpha vpc region](./stackit_alpha_vpc_region.md) - Manages regional configurations of a VPC
* [stackit alpha vpc update](./stackit_alpha_vpc_update.md) - Updates a VPC

2 changes: 1 addition & 1 deletion docs/stackit_alpha_vpc_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ stackit alpha vpc create [flags]
```
--description string Description of the VPC
-h, --help Help for "stackit alpha vpc create"
--labels stringToString Comma separated list of labels of the VPC (default [])
--labels stringToString Labels are key-value string pairs which can be attached to a vpc. E.g. '--labels key1=value1,key2=value2,...' (default [])
--name string Name of the VPC
```

Expand Down
38 changes: 38 additions & 0 deletions docs/stackit_alpha_vpc_network-range.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## stackit alpha vpc network-range

Provides functionality for network ranges in VPC

### Synopsis

Provides functionality for network ranges in VPC.

```
stackit alpha vpc network-range [flags]
```

### Options

```
-h, --help Help for "stackit alpha vpc network-range"
```

### 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 alpha vpc](./stackit_alpha_vpc.md) - Manages vpcs
* [stackit alpha vpc network-range create](./stackit_alpha_vpc_network-range_create.md) - Creates a regional network range in a VPC
* [stackit alpha vpc network-range delete](./stackit_alpha_vpc_network-range_delete.md) - Deletes a regional network range in a VPC
* [stackit alpha vpc network-range describe](./stackit_alpha_vpc_network-range_describe.md) - Shows details of a network range in a VPC
* [stackit alpha vpc network-range list](./stackit_alpha_vpc_network-range_list.md) - Lists all network ranges in a VPC
* [stackit alpha vpc network-range update](./stackit_alpha_vpc_network-range_update.md) - Updates a regional network range in a VPC

50 changes: 50 additions & 0 deletions docs/stackit_alpha_vpc_network-range_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
## stackit alpha vpc network-range create

Creates a regional network range in a VPC

### Synopsis

Creates a regional network range in a VPC.
The vpc needs to be enabled in the specified region before creating a network range.

```
stackit alpha vpc network-range create [flags]
```

### Examples

```
Create a network range in a VPC with ID "xxx" with prefix "1.1.1.0/24" and with ip version 4
$ stackit alpha vpc network-range create --vpc-id xxx --prefix "1.1.1.0/24" --ip-version ipv4
```

### Options

```
--default-prefix-length int The default prefix length for network ranges in the VPC
--description string Description of the network range
-h, --help Help for "stackit alpha vpc network-range create"
--ip-version string IP version of the network-range (one of: [ipv4])
--labels stringToString Labels are key-value string pairs which can be attached to a network range. E.g. '--labels key1=value1,key2=value2,...' (default [])
--max-prefix-length int The maximal prefix length for network ranges in the VPC
--min-prefix-length int The minimal prefix length for network ranges in the VPC
--nameservers strings A list containing DNS Servers
--prefix string Network range to create in CIDR notation
--vpc-id string VPC 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
--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 alpha vpc network-range](./stackit_alpha_vpc_network-range.md) - Provides functionality for network ranges in VPC

41 changes: 41 additions & 0 deletions docs/stackit_alpha_vpc_network-range_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
## stackit alpha vpc network-range delete

Deletes a regional network range in a VPC

### Synopsis

Deletes a regional network range in a VPC.

```
stackit alpha vpc network-range delete NETWORK_RANGE_ID [flags]
```

### Examples

```
Delete network range with id "xxx" in a VPC with ID "yyy"
$ stackit alpha vpc network-range delete xxx --vpc-id yyy
```

### Options

```
-h, --help Help for "stackit alpha vpc network-range delete"
--vpc-id string VPC 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
--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 alpha vpc network-range](./stackit_alpha_vpc_network-range.md) - Provides functionality for network ranges in VPC

41 changes: 41 additions & 0 deletions docs/stackit_alpha_vpc_network-range_describe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
## stackit alpha vpc network-range describe

Shows details of a network range in a VPC

### Synopsis

Shows details of a network range in a VPC.

```
stackit alpha vpc network-range describe NETWORK_RANGE_ID [flags]
```

### Examples

```
Show details of a network range with ID "xxx" in a VPC with ID "yyy"
$ stackit alpha vpc network-range describe xxx --vpc-id yyy
```

### Options

```
-h, --help Help for "stackit alpha vpc network-range describe"
--vpc-id string VPC 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
--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 alpha vpc network-range](./stackit_alpha_vpc_network-range.md) - Provides functionality for network ranges in VPC

48 changes: 48 additions & 0 deletions docs/stackit_alpha_vpc_network-range_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
## stackit alpha vpc network-range list

Lists all network ranges in a VPC

### Synopsis

Lists all network ranges in a VPC.

```
stackit alpha vpc network-range list [flags]
```

### Examples

```
Lists all network ranges in a VPC with ID "xxx"
$ stackit alpha vpc network-range list --vpc-id xxx

Lists all network ranges in a VPC with ID "xxx" in JSON format
$ stackit alpha vpc network-range list --vpc-id xxx --output-format json

Lists up to 10 network ranges in a VPC with ID "xxx"
$ stackit alpha vpc network-range list --vpc-id xxx --limit 10
```

### Options

```
-h, --help Help for "stackit alpha vpc network-range list"
--limit int Maximum number of entries to list
--vpc-id string VPC 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
--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 alpha vpc network-range](./stackit_alpha_vpc_network-range.md) - Provides functionality for network ranges in VPC

51 changes: 51 additions & 0 deletions docs/stackit_alpha_vpc_network-range_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
## stackit alpha vpc network-range update

Updates a regional network range in a VPC

### Synopsis

Updates a regional network range in a VPC.

```
stackit alpha vpc network-range update NETWORK_RANGE_ID [flags]
```

### Examples

```
Update a network range with ID "xxx" in a VPC with ID "yyy" and with ip version "ipv4" to new nameservers "1.2.3.4,5.6.7.8"
$ stackit alpha vpc network-range update xxx --vpc-id yyy --ip-version ipv4 --nameservers "1.2.3.4,5.6.7.8"

Update a network range with ID "xxx" in a VPC with ID "yyy" and with ip version "ipv4" to new description "updated network range" and default prefix length 24
$ stackit alpha vpc network-range update xxx --vpc-id yyy --ip-version ipv4 --description "updated network range" --default-prefix-length 24
```

### Options

```
--default-prefix-length int The default prefix length for network ranges in the VPC
--description string Description of the network range
-h, --help Help for "stackit alpha vpc network-range update"
--ip-version string IP version of the network-range (one of: [ipv4])
--labels stringToString Labels are key-value string pairs which can be attached to a network range. E.g. '--labels key1=value1,key2=value2,...' (default [])
--max-prefix-length int The maximal prefix length for network ranges in the VPC
--min-prefix-length int The minimal prefix length for network ranges in the VPC
--nameservers strings A list containing DNS Servers
--vpc-id string VPC 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
--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 alpha vpc network-range](./stackit_alpha_vpc_network-range.md) - Provides functionality for network ranges in VPC

2 changes: 1 addition & 1 deletion docs/stackit_alpha_vpc_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ stackit alpha vpc update VPC_ID [flags]
```
--description string Description of the VPC
-h, --help Help for "stackit alpha vpc update"
--labels stringToString Comma separated list of labels of the VPC (default [])
--labels stringToString Labels are key-value string pairs which can be attached to a vpc. E.g. '--labels key1=value1,key2=value2,...' (default [])
--name string Name of the VPC
```

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/alpha/vpc/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
func configureFlags(cmd *cobra.Command) {
cmd.Flags().String(nameFlag, "", "Name of the VPC")
cmd.Flags().String(descriptionFlag, "", "Description of the VPC")
cmd.Flags().StringToString(labelsFlag, nil, "Comma separated list of labels of the VPC")
cmd.Flags().StringToString(labelsFlag, nil, "Labels are key-value string pairs which can be attached to a vpc. E.g. '--labels key1=value1,key2=value2,...'")

err := cmd.MarkFlagRequired(nameFlag)
cobra.CheckErr(err)
Expand Down
Loading
Loading