Skip to content

Commit 1638000

Browse files
Merge branch 'main' into feat/STACKITCLI-465-vpc-routing-table
2 parents 5913cf1 + bc46d3e commit 1638000

25 files changed

Lines changed: 2785 additions & 4 deletions

‎docs/stackit_alpha_vpc.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ stackit alpha vpc [flags]
3434
* [stackit alpha vpc delete](./stackit_alpha_vpc_delete.md) - Deletes a VPC
3535
* [stackit alpha vpc describe](./stackit_alpha_vpc_describe.md) - Shows details of a VPC
3636
* [stackit alpha vpc list](./stackit_alpha_vpc_list.md) - Lists all VPC of a project
37+
* [stackit alpha vpc network-range](./stackit_alpha_vpc_network-range.md) - Provides functionality for network ranges in VPC
3738
* [stackit alpha vpc region](./stackit_alpha_vpc_region.md) - Manages regional configurations of a VPC
3839
* [stackit alpha vpc routing-table](./stackit_alpha_vpc_routing-table.md) - Manages VPC routing-tables
3940
* [stackit alpha vpc update](./stackit_alpha_vpc_update.md) - Updates a VPC

‎docs/stackit_alpha_vpc_create.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ stackit alpha vpc create [flags]
2323
```
2424
--description string Description of the VPC
2525
-h, --help Help for "stackit alpha vpc create"
26-
--labels stringToString Comma separated list of labels of the VPC (default [])
26+
--labels stringToString Labels are key-value string pairs which can be attached to a vpc. E.g. '--labels key1=value1,key2=value2,...' (default [])
2727
--name string Name of the VPC
2828
```
2929

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## stackit alpha vpc network-range
2+
3+
Provides functionality for network ranges in VPC
4+
5+
### Synopsis
6+
7+
Provides functionality for network ranges in VPC.
8+
9+
```
10+
stackit alpha vpc network-range [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help Help for "stackit alpha vpc network-range"
17+
```
18+
19+
### Options inherited from parent commands
20+
21+
```
22+
-y, --assume-yes If set, skips all confirmation prompts
23+
--async If set, runs the command asynchronously
24+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
25+
-p, --project-id string Project ID
26+
--region string Target region for region-specific requests
27+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
28+
```
29+
30+
### SEE ALSO
31+
32+
* [stackit alpha vpc](./stackit_alpha_vpc.md) - Manages vpcs
33+
* [stackit alpha vpc network-range create](./stackit_alpha_vpc_network-range_create.md) - Creates a regional network range in a VPC
34+
* [stackit alpha vpc network-range delete](./stackit_alpha_vpc_network-range_delete.md) - Deletes a regional network range in a VPC
35+
* [stackit alpha vpc network-range describe](./stackit_alpha_vpc_network-range_describe.md) - Shows details of a network range in a VPC
36+
* [stackit alpha vpc network-range list](./stackit_alpha_vpc_network-range_list.md) - Lists all network ranges in a VPC
37+
* [stackit alpha vpc network-range update](./stackit_alpha_vpc_network-range_update.md) - Updates a regional network range in a VPC
38+
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
## stackit alpha vpc network-range create
2+
3+
Creates a regional network range in a VPC
4+
5+
### Synopsis
6+
7+
Creates a regional network range in a VPC.
8+
The vpc needs to be enabled in the specified region before creating a network range.
9+
10+
```
11+
stackit alpha vpc network-range create [flags]
12+
```
13+
14+
### Examples
15+
16+
```
17+
Create a network range in a VPC with ID "xxx" with prefix "1.1.1.0/24" and with ip version 4
18+
$ stackit alpha vpc network-range create --vpc-id xxx --prefix "1.1.1.0/24" --ip-version ipv4
19+
```
20+
21+
### Options
22+
23+
```
24+
--default-prefix-length int The default prefix length for network ranges in the VPC
25+
--description string Description of the network range
26+
-h, --help Help for "stackit alpha vpc network-range create"
27+
--ip-version string IP version of the network-range (one of: [ipv4])
28+
--labels stringToString Labels are key-value string pairs which can be attached to a network range. E.g. '--labels key1=value1,key2=value2,...' (default [])
29+
--max-prefix-length int The maximal prefix length for network ranges in the VPC
30+
--min-prefix-length int The minimal prefix length for network ranges in the VPC
31+
--nameservers strings A list containing DNS Servers
32+
--prefix string Network range to create in CIDR notation
33+
--vpc-id string VPC ID
34+
```
35+
36+
### Options inherited from parent commands
37+
38+
```
39+
-y, --assume-yes If set, skips all confirmation prompts
40+
--async If set, runs the command asynchronously
41+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
42+
-p, --project-id string Project ID
43+
--region string Target region for region-specific requests
44+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
45+
```
46+
47+
### SEE ALSO
48+
49+
* [stackit alpha vpc network-range](./stackit_alpha_vpc_network-range.md) - Provides functionality for network ranges in VPC
50+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## stackit alpha vpc network-range delete
2+
3+
Deletes a regional network range in a VPC
4+
5+
### Synopsis
6+
7+
Deletes a regional network range in a VPC.
8+
9+
```
10+
stackit alpha vpc network-range delete NETWORK_RANGE_ID [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Delete network range with id "xxx" in a VPC with ID "yyy"
17+
$ stackit alpha vpc network-range delete xxx --vpc-id yyy
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit alpha vpc network-range delete"
24+
--vpc-id string VPC ID
25+
```
26+
27+
### Options inherited from parent commands
28+
29+
```
30+
-y, --assume-yes If set, skips all confirmation prompts
31+
--async If set, runs the command asynchronously
32+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
33+
-p, --project-id string Project ID
34+
--region string Target region for region-specific requests
35+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
36+
```
37+
38+
### SEE ALSO
39+
40+
* [stackit alpha vpc network-range](./stackit_alpha_vpc_network-range.md) - Provides functionality for network ranges in VPC
41+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## stackit alpha vpc network-range describe
2+
3+
Shows details of a network range in a VPC
4+
5+
### Synopsis
6+
7+
Shows details of a network range in a VPC.
8+
9+
```
10+
stackit alpha vpc network-range describe NETWORK_RANGE_ID [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Show details of a network range with ID "xxx" in a VPC with ID "yyy"
17+
$ stackit alpha vpc network-range describe xxx --vpc-id yyy
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit alpha vpc network-range describe"
24+
--vpc-id string VPC ID
25+
```
26+
27+
### Options inherited from parent commands
28+
29+
```
30+
-y, --assume-yes If set, skips all confirmation prompts
31+
--async If set, runs the command asynchronously
32+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
33+
-p, --project-id string Project ID
34+
--region string Target region for region-specific requests
35+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
36+
```
37+
38+
### SEE ALSO
39+
40+
* [stackit alpha vpc network-range](./stackit_alpha_vpc_network-range.md) - Provides functionality for network ranges in VPC
41+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
## stackit alpha vpc network-range list
2+
3+
Lists all network ranges in a VPC
4+
5+
### Synopsis
6+
7+
Lists all network ranges in a VPC.
8+
9+
```
10+
stackit alpha vpc network-range list [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Lists all network ranges in a VPC with ID "xxx"
17+
$ stackit alpha vpc network-range list --vpc-id xxx
18+
19+
Lists all network ranges in a VPC with ID "xxx" in JSON format
20+
$ stackit alpha vpc network-range list --vpc-id xxx --output-format json
21+
22+
Lists up to 10 network ranges in a VPC with ID "xxx"
23+
$ stackit alpha vpc network-range list --vpc-id xxx --limit 10
24+
```
25+
26+
### Options
27+
28+
```
29+
-h, --help Help for "stackit alpha vpc network-range list"
30+
--limit int Maximum number of entries to list
31+
--vpc-id string VPC ID
32+
```
33+
34+
### Options inherited from parent commands
35+
36+
```
37+
-y, --assume-yes If set, skips all confirmation prompts
38+
--async If set, runs the command asynchronously
39+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
40+
-p, --project-id string Project ID
41+
--region string Target region for region-specific requests
42+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
43+
```
44+
45+
### SEE ALSO
46+
47+
* [stackit alpha vpc network-range](./stackit_alpha_vpc_network-range.md) - Provides functionality for network ranges in VPC
48+
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
## stackit alpha vpc network-range update
2+
3+
Updates a regional network range in a VPC
4+
5+
### Synopsis
6+
7+
Updates a regional network range in a VPC.
8+
9+
```
10+
stackit alpha vpc network-range update NETWORK_RANGE_ID [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
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"
17+
$ stackit alpha vpc network-range update xxx --vpc-id yyy --ip-version ipv4 --nameservers "1.2.3.4,5.6.7.8"
18+
19+
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
20+
$ stackit alpha vpc network-range update xxx --vpc-id yyy --ip-version ipv4 --description "updated network range" --default-prefix-length 24
21+
```
22+
23+
### Options
24+
25+
```
26+
--default-prefix-length int The default prefix length for network ranges in the VPC
27+
--description string Description of the network range
28+
-h, --help Help for "stackit alpha vpc network-range update"
29+
--ip-version string IP version of the network-range (one of: [ipv4])
30+
--labels stringToString Labels are key-value string pairs which can be attached to a network range. E.g. '--labels key1=value1,key2=value2,...' (default [])
31+
--max-prefix-length int The maximal prefix length for network ranges in the VPC
32+
--min-prefix-length int The minimal prefix length for network ranges in the VPC
33+
--nameservers strings A list containing DNS Servers
34+
--vpc-id string VPC ID
35+
```
36+
37+
### Options inherited from parent commands
38+
39+
```
40+
-y, --assume-yes If set, skips all confirmation prompts
41+
--async If set, runs the command asynchronously
42+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
43+
-p, --project-id string Project ID
44+
--region string Target region for region-specific requests
45+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
46+
```
47+
48+
### SEE ALSO
49+
50+
* [stackit alpha vpc network-range](./stackit_alpha_vpc_network-range.md) - Provides functionality for network ranges in VPC
51+

‎docs/stackit_alpha_vpc_update.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ stackit alpha vpc update VPC_ID [flags]
2525
```
2626
--description string Description of the VPC
2727
-h, --help Help for "stackit alpha vpc update"
28-
--labels stringToString Comma separated list of labels of the VPC (default [])
28+
--labels stringToString Labels are key-value string pairs which can be attached to a vpc. E.g. '--labels key1=value1,key2=value2,...' (default [])
2929
--name string Name of the VPC
3030
```
3131

‎internal/cmd/alpha/vpc/create/create.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
8787
func configureFlags(cmd *cobra.Command) {
8888
cmd.Flags().String(nameFlag, "", "Name of the VPC")
8989
cmd.Flags().String(descriptionFlag, "", "Description of the VPC")
90-
cmd.Flags().StringToString(labelsFlag, nil, "Comma separated list of labels of the VPC")
90+
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,...'")
9191

9292
err := cmd.MarkFlagRequired(nameFlag)
9393
cobra.CheckErr(err)

0 commit comments

Comments
 (0)