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_routing-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ stackit alpha vpc routing-table [flags]
* [stackit alpha vpc routing-table delete](./stackit_alpha_vpc_routing-table_delete.md) - Deletes a VPC routing-table
* [stackit alpha vpc routing-table describe](./stackit_alpha_vpc_routing-table_describe.md) - Describes a VPC routing-table
* [stackit alpha vpc routing-table list](./stackit_alpha_vpc_routing-table_list.md) - Lists VPC routing-tables
* [stackit alpha vpc routing-table static-route](./stackit_alpha_vpc_routing-table_static-route.md) - Manages static routes of a VPC routing-table
* [stackit alpha vpc routing-table update](./stackit_alpha_vpc_routing-table_update.md) - Updates a VPC routing-table

38 changes: 38 additions & 0 deletions docs/stackit_alpha_vpc_routing-table_static-route.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## stackit alpha vpc routing-table static-route

Manages static routes of a VPC routing-table

### Synopsis

Manages static routes of a VPC routing-table

```
stackit alpha vpc routing-table static-route [flags]
```

### Options

```
-h, --help Help for "stackit alpha vpc routing-table static-route"
```

### 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 routing-table](./stackit_alpha_vpc_routing-table.md) - Manages VPC routing-tables
* [stackit alpha vpc routing-table static-route create](./stackit_alpha_vpc_routing-table_static-route_create.md) - Creates a static-route in a routing-table
* [stackit alpha vpc routing-table static-route delete](./stackit_alpha_vpc_routing-table_static-route_delete.md) - Deletes a static-route within a VPC routing-table
* [stackit alpha vpc routing-table static-route describe](./stackit_alpha_vpc_routing-table_static-route_describe.md) - Describes a static-route within a VPC routing-table
* [stackit alpha vpc routing-table static-route list](./stackit_alpha_vpc_routing-table_static-route_list.md) - Lists all static-routes within a VPC routing-table
* [stackit alpha vpc routing-table static-route update](./stackit_alpha_vpc_routing-table_static-route_update.md) - Updates a static-route in a VPC routing-table

53 changes: 53 additions & 0 deletions docs/stackit_alpha_vpc_routing-table_static-route_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
## stackit alpha vpc routing-table static-route create

Creates a static-route in a routing-table

### Synopsis

Creates a static-route in a routing-table.

```
stackit alpha vpc routing-table static-route create [flags]
```

### Examples

```
Create a static-route with CIDRv4 destination and IPv4 nexthop
$ stackit alpha vpc routing-table static-route create --routing-table-id xxx --vpc-id yyy --destination-type cidrv4 --destination-value <ipv4-cidr> --nexthop-type ipv4 --nexthop-value <ipv4-address>

Create a route with CIDRv6 destination and IPv6 nexthop
$ stackit alpha vpc routing-table static-route create --routing-table-id xxx --vpc-id yyy --destination-type cidrv6 --destination-value <ipv6-cidr> --nexthop-type ipv6 --nexthop-value <ipv6-address>

Create a route with CIDRv6 destination and nexthop Internet
$ stackit alpha vpc routing-table static-route create --routing-table-id xxx --vpc-id yyy --destination-type cidrv6 --destination-value <ipv6-cidr> --nexthop-type internet
```

### Options

```
--destination-type string Destination type (one of: [cidrv4, cidrv6])
--destination-value string Destination value
-h, --help Help for "stackit alpha vpc routing-table static-route create"
--labels stringToString Labels are key-value string pairs which can be attached to a static route. E.g. '--labels key1=value1,key2=value2,...' (default [])
--nexthop-type string Next hop type (one of: [ipv4, ipv6, internet, blackhole])
--nexthop-value string NextHop value
--routing-table-id string Routing-Table ID
--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 routing-table static-route](./stackit_alpha_vpc_routing-table_static-route.md) - Manages static routes of a VPC routing-table

42 changes: 42 additions & 0 deletions docs/stackit_alpha_vpc_routing-table_static-route_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
## stackit alpha vpc routing-table static-route delete

Deletes a static-route within a VPC routing-table

### Synopsis

Deletes a static-route within a VPC routing-table.

```
stackit alpha vpc routing-table static-route delete ROUTE_ID [flags]
```

### Examples

```
Deletes a static-route within a VPC routing-table
$ stackit alpha vpc routing-table static-route delete xxx --routing-table-id yyy --vpc-id zzz
```

### Options

```
-h, --help Help for "stackit alpha vpc routing-table static-route delete"
--routing-table-id string Routing-Table ID
--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 routing-table static-route](./stackit_alpha_vpc_routing-table_static-route.md) - Manages static routes of a VPC routing-table

42 changes: 42 additions & 0 deletions docs/stackit_alpha_vpc_routing-table_static-route_describe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
## stackit alpha vpc routing-table static-route describe

Describes a static-route within a VPC routing-table

### Synopsis

Describes a static-route within a VPC routing-table.

```
stackit alpha vpc routing-table static-route describe ROUTE_ID [flags]
```

### Examples

```
Describe a static-route within a VPC routing-table
$ stackit alpha vpc routing-table static-route describe xxx --routing-table-id yyy --vpc-id zzz
```

### Options

```
-h, --help Help for "stackit alpha vpc routing-table static-route describe"
--routing-table-id string Routing-Table ID
--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 routing-table static-route](./stackit_alpha_vpc_routing-table_static-route.md) - Manages static routes of a VPC routing-table

50 changes: 50 additions & 0 deletions docs/stackit_alpha_vpc_routing-table_static-route_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
## stackit alpha vpc routing-table static-route list

Lists all static-routes within a VPC routing-table

### Synopsis

Lists all static-routes within a VPC routing-table.

```
stackit alpha vpc routing-table static-route list [flags]
```

### Examples

```
List all static-routes within a VPC routing-table
$ stackit alpha vpc routing-table static-route list --routing-table-id xxx --vpc-id yyy

List all static-routes within a VPC routing-table with labels foo=bar,bar=baz
$ stackit alpha vpc routing-table static-route list --routing-table-id xxx --vpc-id yyy --label-selector foo=bar,bar=baz

List up to 10 static-routes within a VPC routing-table
$ stackit alpha vpc routing-table static-route list --routing-table-id xxx --vpc-id yyy --limit 10
```

### Options

```
-h, --help Help for "stackit alpha vpc routing-table static-route list"
--label-selector string Filter by label
--limit int Maximum number of entries to list
--routing-table-id string Routing-Table ID
--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 routing-table static-route](./stackit_alpha_vpc_routing-table_static-route.md) - Manages static routes of a VPC routing-table

43 changes: 43 additions & 0 deletions docs/stackit_alpha_vpc_routing-table_static-route_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## stackit alpha vpc routing-table static-route update

Updates a static-route in a VPC routing-table

### Synopsis

Updates a static-route in a VPC routing-table.

```
stackit alpha vpc routing-table static-route update ROUTE_ID [flags]
```

### Examples

```
Updates the label(s) of a static-route with ID "xxx" in a routing-table ID "yyy" in VPC "zzz"
$ stackit alpha vpc routing-table static-route update xxx --routing-table-id yyy --vpc-id zzz --labels key=value,foo=bar
```

### Options

```
-h, --help Help for "stackit alpha vpc routing-table static-route update"
--labels stringToString Labels are key-value string pairs which can be attached to a static route. E.g. '--labels key1=value1,key2=value2,...' (default [])
--routing-table-id string Routing-Table ID
--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 routing-table static-route](./stackit_alpha_vpc_routing-table_static-route.md) - Manages static routes of a VPC routing-table

2 changes: 2 additions & 0 deletions internal/cmd/alpha/vpc/routingtable/routingtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/stackitcloud/stackit-cli/internal/cmd/alpha/vpc/routingtable/delete"
"github.com/stackitcloud/stackit-cli/internal/cmd/alpha/vpc/routingtable/describe"
"github.com/stackitcloud/stackit-cli/internal/cmd/alpha/vpc/routingtable/list"
"github.com/stackitcloud/stackit-cli/internal/cmd/alpha/vpc/routingtable/staticroute"
"github.com/stackitcloud/stackit-cli/internal/cmd/alpha/vpc/routingtable/update"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
"github.com/stackitcloud/stackit-cli/internal/pkg/types"
Expand All @@ -32,4 +33,5 @@ func addSubcommands(cmd *cobra.Command, params *types.CmdParams) {
cmd.AddCommand(update.NewCmd(params))
cmd.AddCommand(list.NewCmd(params))
cmd.AddCommand(delete.NewCmd(params))
cmd.AddCommand(staticroute.NewCmd(params))
}
Loading
Loading