Skip to content

Commit 9744a6a

Browse files
committed
feat(routing-table): provide rt and routes functionality
1 parent 52ad952 commit 9744a6a

30 files changed

+3925
-0
lines changed

docs/stackit_beta.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,6 @@ stackit beta [flags]
4343
* [stackit](./stackit.md) - Manage STACKIT resources using the command line
4444
* [stackit beta alb](./stackit_beta_alb.md) - Manages application loadbalancers
4545
* [stackit beta kms](./stackit_beta_kms.md) - Provides functionality for KMS
46+
* [stackit beta routing-table](./stackit_beta_routing-table.md) - Manage routing-tables and its according routes
4647
* [stackit beta sqlserverflex](./stackit_beta_sqlserverflex.md) - Provides functionality for SQLServer Flex
4748

docs/stackit_beta_routing-table.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
## stackit beta routing-table
2+
3+
Manage routing-tables and its according routes
4+
5+
### Synopsis
6+
7+
Manage routing tables and their associated routes.
8+
9+
This functionality is currently in BETA. At this stage, only listing and describing
10+
routing-tables, as well as full CRUD operations for routes, are supported.
11+
This feature is primarily intended for debugging routes created through Terraform.
12+
13+
Once the feature reaches General Availability, we plan to introduce support
14+
for creating routing tables and attaching them to networks directly via the
15+
CLI. Until then, we recommend users continue managing routing tables and
16+
attachments through the Terraform provider.
17+
18+
```
19+
stackit beta routing-table [flags]
20+
```
21+
22+
### Options
23+
24+
```
25+
-h, --help Help for "stackit beta routing-table"
26+
```
27+
28+
### Options inherited from parent commands
29+
30+
```
31+
-y, --assume-yes If set, skips all confirmation prompts
32+
--async If set, runs the command asynchronously
33+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
34+
-p, --project-id string Project ID
35+
--region string Target region for region-specific requests
36+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
37+
```
38+
39+
### SEE ALSO
40+
41+
* [stackit beta](./stackit_beta.md) - Contains beta STACKIT CLI commands
42+
* [stackit beta routing-table describe](./stackit_beta_routing-table_describe.md) - Describe a routing-table
43+
* [stackit beta routing-table list](./stackit_beta_routing-table_list.md) - List all routing-tables
44+
* [stackit beta routing-table route](./stackit_beta_routing-table_route.md) - Manage routes of a routing-table
45+
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
## stackit beta routing-table describe
2+
3+
Describe a routing-table
4+
5+
### Synopsis
6+
7+
Describe a routing-table
8+
9+
```
10+
stackit beta routing-table describe ROUTING_TABLE_ID_ARG [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Describe a routing-table
17+
$ stackit beta routing-table describe xxxx-xxxx-xxxx-xxxx --organization-id xxx --network-area-id yyy
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit beta routing-table describe"
24+
--network-area-id string Network-Area ID
25+
--organization-id string Organization ID
26+
```
27+
28+
### Options inherited from parent commands
29+
30+
```
31+
-y, --assume-yes If set, skips all confirmation prompts
32+
--async If set, runs the command asynchronously
33+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
34+
-p, --project-id string Project ID
35+
--region string Target region for region-specific requests
36+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
37+
```
38+
39+
### SEE ALSO
40+
41+
* [stackit beta routing-table](./stackit_beta_routing-table.md) - Manage routing-tables and its according routes
42+
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
## stackit beta routing-table list
2+
3+
List all routing-tables
4+
5+
### Synopsis
6+
7+
List all routing-tables
8+
9+
```
10+
stackit beta routing-table list [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
List all routing-tables
17+
$ stackit beta routing-table list --organization-id xxx --network-area-id yyy
18+
19+
List all routing-tables with labels
20+
$ stackit beta routing-table list --label-selector env=dev,env=rc --organization-id xxx --network-area-id yyy
21+
22+
List all routing-tables with labels and set limit to 10
23+
$ stackit beta routing-table list --label-selector env=dev,env=rc --limit 10 --organization-id xxx --network-area-id yyy
24+
```
25+
26+
### Options
27+
28+
```
29+
-h, --help Help for "stackit beta routing-table list"
30+
--label-selector string Filter by label
31+
--limit int Maximum number of entries to list
32+
--network-area-id string Network-Area ID
33+
--organization-id string Organization 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 beta routing-table](./stackit_beta_routing-table.md) - Manage routing-tables and its according routes
50+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## stackit beta routing-table route
2+
3+
Manage routes of a routing-table
4+
5+
### Synopsis
6+
7+
Manage routes of a routing-table
8+
9+
```
10+
stackit beta routing-table route [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help Help for "stackit beta routing-table route"
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 beta routing-table](./stackit_beta_routing-table.md) - Manage routing-tables and its according routes
33+
* [stackit beta routing-table route create](./stackit_beta_routing-table_route_create.md) - Creates a route in a routing-table
34+
* [stackit beta routing-table route delete](./stackit_beta_routing-table_route_delete.md) - Deletes a route within a routing-table
35+
* [stackit beta routing-table route describe](./stackit_beta_routing-table_route_describe.md) - Describe a route within a routing-table
36+
* [stackit beta routing-table route list](./stackit_beta_routing-table_route_list.md) - list all routes within a routing-table
37+
* [stackit beta routing-table route update](./stackit_beta_routing-table_route_update.md) - Updates a route in a routing-table
38+
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
## stackit beta routing-table route create
2+
3+
Creates a route in a routing-table
4+
5+
### Synopsis
6+
7+
Creates a route in a routing-table.
8+
9+
```
10+
stackit beta routing-table route create [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Create a route with CIDRv4 destination and IPv4 nexthop
17+
stackit beta routing-tables route create \
18+
--routing-table-id xxx --organization-id yyy --network-area-id zzz \
19+
--destination-type cidrv4 --destination-value <ipv4-cidr> \
20+
--nexthop-type ipv4 --nexthop-value <ipv4-address>
21+
22+
Create a route with CIDRv6 destination and IPv6 nexthop
23+
stackit beta routing-tables route create \
24+
--routing-table-id xxx --organization-id yyy --network-area-id zzz \
25+
--destination-type cidrv6 --destination-value <ipv6-cidr> \
26+
--nexthop-type ipv6 --nexthop-value <ipv6-address>
27+
28+
Create a route with CIDRv6 destination and Nexthop Internet
29+
stackit beta routing-tables route create \
30+
--routing-table-id xxx --organization-id yyy --network-area-id zzz \
31+
--destination-type cidrv6 --destination-value <ipv6-cidr> \
32+
--nexthop-type internet
33+
```
34+
35+
### Options
36+
37+
```
38+
--destination-type string Destination type
39+
--destination-value string Destination value
40+
-h, --help Help for "stackit beta routing-table route create"
41+
--labels stringToString Key=value labels (default [])
42+
--network-area-id string Network-Area ID
43+
--nexthop-type string Next hop type
44+
--nexthop-value string NextHop value
45+
--organization-id string Organization ID
46+
--routing-table-id string Routing-Table ID
47+
```
48+
49+
### Options inherited from parent commands
50+
51+
```
52+
-y, --assume-yes If set, skips all confirmation prompts
53+
--async If set, runs the command asynchronously
54+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
55+
-p, --project-id string Project ID
56+
--region string Target region for region-specific requests
57+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
58+
```
59+
60+
### SEE ALSO
61+
62+
* [stackit beta routing-table route](./stackit_beta_routing-table_route.md) - Manage routes of a routing-table
63+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
## stackit beta routing-table route delete
2+
3+
Deletes a route within a routing-table
4+
5+
### Synopsis
6+
7+
Deletes a route within a routing-table
8+
9+
```
10+
stackit beta routing-table route delete routing-table-id [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Deletes a route within a routing-table
17+
$ stackit beta routing-table route delete xxxx-xxxx-xxxx-xxxx --routing-table-id xxx --organization-id yyy --network-area-id zzz
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit beta routing-table route delete"
24+
--network-area-id string Network-Area ID
25+
--organization-id string Organization ID
26+
--routing-table-id string Routing-Table ID
27+
```
28+
29+
### Options inherited from parent commands
30+
31+
```
32+
-y, --assume-yes If set, skips all confirmation prompts
33+
--async If set, runs the command asynchronously
34+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
35+
-p, --project-id string Project ID
36+
--region string Target region for region-specific requests
37+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
38+
```
39+
40+
### SEE ALSO
41+
42+
* [stackit beta routing-table route](./stackit_beta_routing-table_route.md) - Manage routes of a routing-table
43+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
## stackit beta routing-table route describe
2+
3+
Describe a route within a routing-table
4+
5+
### Synopsis
6+
7+
Describe a route within a routing-table
8+
9+
```
10+
stackit beta routing-table route describe ROUTE_ID_ARG [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Describe a route within a routing-table
17+
$ stackit beta routing-table route describe xxxx-xxxx-xxxx-xxxx --routing-table-id xxx --organization-id yyy --network-area-id zzz
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit beta routing-table route describe"
24+
--network-area-id string Network-Area ID
25+
--organization-id string Organization ID
26+
--routing-table-id string Routing-Table ID
27+
```
28+
29+
### Options inherited from parent commands
30+
31+
```
32+
-y, --assume-yes If set, skips all confirmation prompts
33+
--async If set, runs the command asynchronously
34+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
35+
-p, --project-id string Project ID
36+
--region string Target region for region-specific requests
37+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
38+
```
39+
40+
### SEE ALSO
41+
42+
* [stackit beta routing-table route](./stackit_beta_routing-table_route.md) - Manage routes of a routing-table
43+
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
## stackit beta routing-table route list
2+
3+
list all routes within a routing-table
4+
5+
### Synopsis
6+
7+
list all routes within a routing-table
8+
9+
```
10+
stackit beta routing-table route list [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
List all routes within a routing-table
17+
$ stackit beta routing-table route list --routing-table-id xxx --organization-id yyy --network-area-id zzz
18+
19+
List all routes within a routing-table with labels
20+
$ stackit beta routing-table list --routing-table-id xxx --organization-id yyy --network-area-id zzz --label-selector env=dev,env=rc
21+
22+
List all routes within a routing-tables with labels and limit to 10
23+
$ stackit beta routing-table list --routing-table-id xxx --organization-id yyy --network-area-id zzz --label-selector env=dev,env=rc --limit 10
24+
```
25+
26+
### Options
27+
28+
```
29+
-h, --help Help for "stackit beta routing-table route list"
30+
--label-selector string Filter by label
31+
--limit int Maximum number of entries to list
32+
--network-area-id string Network-Area ID
33+
--organization-id string Organization ID
34+
--routing-table-id string Routing-Table 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 beta routing-table route](./stackit_beta_routing-table_route.md) - Manage routes of a routing-table
51+

0 commit comments

Comments
 (0)