Skip to content

Commit d24f3d7

Browse files
feat(vpc): add routing table commands (#1657)
STACKITCLI-465
1 parent fc07614 commit d24f3d7

20 files changed

Lines changed: 2544 additions & 0 deletions

‎docs/stackit_alpha_vpc.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@ stackit alpha vpc [flags]
3636
* [stackit alpha vpc list](./stackit_alpha_vpc_list.md) - Lists all VPC of a project
3737
* [stackit alpha vpc network-range](./stackit_alpha_vpc_network-range.md) - Provides functionality for network ranges in VPC
3838
* [stackit alpha vpc region](./stackit_alpha_vpc_region.md) - Manages regional configurations of a VPC
39+
* [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
4041

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## stackit alpha vpc routing-table
2+
3+
Manages VPC routing-tables
4+
5+
### Synopsis
6+
7+
Manages routing-tables for a VPC in a region.
8+
9+
```
10+
stackit alpha vpc routing-table [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help Help for "stackit alpha vpc routing-table"
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 routing-table create](./stackit_alpha_vpc_routing-table_create.md) - Creates a VPC routing-table
34+
* [stackit alpha vpc routing-table delete](./stackit_alpha_vpc_routing-table_delete.md) - Deletes a VPC routing-table
35+
* [stackit alpha vpc routing-table describe](./stackit_alpha_vpc_routing-table_describe.md) - Describes a VPC routing-table
36+
* [stackit alpha vpc routing-table list](./stackit_alpha_vpc_routing-table_list.md) - Lists VPC routing-tables
37+
* [stackit alpha vpc routing-table update](./stackit_alpha_vpc_routing-table_update.md) - Updates a VPC routing-table
38+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
## stackit alpha vpc routing-table create
2+
3+
Creates a VPC routing-table
4+
5+
### Synopsis
6+
7+
Creates a routing-table for a VPC in a region. VPC can only be used in projects with enabled VPC.
8+
9+
```
10+
stackit alpha vpc routing-table create [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Create a routing-table with name "rt" for VPC "xxx" in region "eu02"
17+
$ stackit alpha vpc routing-table create --vpc-id xxx --region eu02 --name rt
18+
19+
Create a routing-table with labels and dynamic routes disabled, using the configured project and region
20+
$ stackit alpha vpc routing-table create --vpc-id xxx --name rt --labels env=dev --dynamic-routes=false
21+
```
22+
23+
### Options
24+
25+
```
26+
--description string Description of the routing-table
27+
--dynamic-routes If set to false, prevents dynamic routes from propagating to the routing-table (default true)
28+
-h, --help Help for "stackit alpha vpc routing-table create"
29+
--labels stringToString Key=value labels (default [])
30+
--name string Name of the routing-table
31+
--system-routes If set to false, disables automatic system routes (default true)
32+
--vpc-id string VPC ID
33+
```
34+
35+
### Options inherited from parent commands
36+
37+
```
38+
-y, --assume-yes If set, skips all confirmation prompts
39+
--async If set, runs the command asynchronously
40+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
41+
-p, --project-id string Project ID
42+
--region string Target region for region-specific requests
43+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
44+
```
45+
46+
### SEE ALSO
47+
48+
* [stackit alpha vpc routing-table](./stackit_alpha_vpc_routing-table.md) - Manages VPC routing-tables
49+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## stackit alpha vpc routing-table delete
2+
3+
Deletes a VPC routing-table
4+
5+
### Synopsis
6+
7+
Deletes a routing-table for a VPC in a region.
8+
9+
```
10+
stackit alpha vpc routing-table delete ROUTING_TABLE_ID [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Delete routing-table "xxx" for VPC "yyy" in region "eu02"
17+
$ stackit alpha vpc routing-table delete xxx --vpc-id yyy --region eu02
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit alpha vpc routing-table 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 routing-table](./stackit_alpha_vpc_routing-table.md) - Manages VPC routing-tables
41+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
## stackit alpha vpc routing-table describe
2+
3+
Describes a VPC routing-table
4+
5+
### Synopsis
6+
7+
Describes a routing-table for a VPC in a region.
8+
9+
```
10+
stackit alpha vpc routing-table describe ROUTING_TABLE_ID [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Describe routing-table "xxx" for VPC "yyy" in region "eu02"
17+
$ stackit alpha vpc routing-table describe xxx --vpc-id yyy --region eu02
18+
19+
Describe a routing-table in JSON format, using the configured project and region
20+
$ stackit alpha vpc routing-table describe xxx --vpc-id yyy --output-format json
21+
```
22+
23+
### Options
24+
25+
```
26+
-h, --help Help for "stackit alpha vpc routing-table describe"
27+
--vpc-id string VPC ID
28+
```
29+
30+
### Options inherited from parent commands
31+
32+
```
33+
-y, --assume-yes If set, skips all confirmation prompts
34+
--async If set, runs the command asynchronously
35+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
36+
-p, --project-id string Project ID
37+
--region string Target region for region-specific requests
38+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
39+
```
40+
41+
### SEE ALSO
42+
43+
* [stackit alpha vpc routing-table](./stackit_alpha_vpc_routing-table.md) - Manages VPC routing-tables
44+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
## stackit alpha vpc routing-table list
2+
3+
Lists VPC routing-tables
4+
5+
### Synopsis
6+
7+
Lists routing-tables for a VPC in a region.
8+
9+
```
10+
stackit alpha vpc routing-table list [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
List routing-tables for VPC "xxx" in region "eu02"
17+
$ stackit alpha vpc routing-table list --vpc-id xxx --region eu02
18+
19+
List up to ten routing-tables with labels, using the configured project and region
20+
$ stackit alpha vpc routing-table list --vpc-id xxx --label-selector env=dev --limit 10
21+
```
22+
23+
### Options
24+
25+
```
26+
--filter string Filter resources by fields. A subset of expr-lang is supported. See https://expr-lang.org/docs/language-definition for usage details
27+
-h, --help Help for "stackit alpha vpc routing-table list"
28+
--label-selector string Filter by label
29+
--limit int Maximum number of entries to list
30+
--vpc-id string VPC ID
31+
```
32+
33+
### Options inherited from parent commands
34+
35+
```
36+
-y, --assume-yes If set, skips all confirmation prompts
37+
--async If set, runs the command asynchronously
38+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
39+
-p, --project-id string Project ID
40+
--region string Target region for region-specific requests
41+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
42+
```
43+
44+
### SEE ALSO
45+
46+
* [stackit alpha vpc routing-table](./stackit_alpha_vpc_routing-table.md) - Manages VPC routing-tables
47+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
## stackit alpha vpc routing-table update
2+
3+
Updates a VPC routing-table
4+
5+
### Synopsis
6+
7+
Updates a routing-table for a VPC in a region.
8+
9+
```
10+
stackit alpha vpc routing-table update ROUTING_TABLE_ID [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Update the name of routing-table "xxx" for VPC "yyy" in region "eu02"
17+
$ stackit alpha vpc routing-table update xxx --vpc-id yyy --region eu02 --name rt
18+
19+
Disable dynamic routes, using the configured project and region
20+
$ stackit alpha vpc routing-table update xxx --vpc-id yyy --dynamic-routes=false
21+
```
22+
23+
### Options
24+
25+
```
26+
--description string Description of the routing-table
27+
--dynamic-routes If set to false, prevents dynamic routes from propagating to the routing-table
28+
-h, --help Help for "stackit alpha vpc routing-table update"
29+
--labels stringToString Key=value labels (default [])
30+
--name string Name of the routing-table
31+
--system-routes If set to false, disables automatic system routes
32+
--vpc-id string VPC ID
33+
```
34+
35+
### Options inherited from parent commands
36+
37+
```
38+
-y, --assume-yes If set, skips all confirmation prompts
39+
--async If set, runs the command asynchronously
40+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
41+
-p, --project-id string Project ID
42+
--region string Target region for region-specific requests
43+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
44+
```
45+
46+
### SEE ALSO
47+
48+
* [stackit alpha vpc routing-table](./stackit_alpha_vpc_routing-table.md) - Manages VPC routing-tables
49+

0 commit comments

Comments
 (0)