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.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ stackit [flags]
* [stackit key-pair](./stackit_key-pair.md) - Provides functionality for SSH key pairs
* [stackit load-balancer](./stackit_load-balancer.md) - Provides functionality for Load Balancer
* [stackit logme](./stackit_logme.md) - Provides functionality for LogMe
* [stackit logs](./stackit_logs.md) - Provides functionality for Logs
* [stackit mariadb](./stackit_mariadb.md) - Provides functionality for MariaDB
* [stackit mongodbflex](./stackit_mongodbflex.md) - Provides functionality for MongoDB Flex
* [stackit network](./stackit_network.md) - Provides functionality for networks
Expand Down
1 change: 0 additions & 1 deletion docs/stackit_beta.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ stackit beta [flags]
* [stackit beta edge-cloud](./stackit_beta_edge-cloud.md) - Provides functionality for edge services.
* [stackit beta intake](./stackit_beta_intake.md) - Provides functionality for intake
* [stackit beta kms](./stackit_beta_kms.md) - Provides functionality for KMS
* [stackit beta logs](./stackit_beta_logs.md) - Provides functionality for Logs
* [stackit beta sfs](./stackit_beta_sfs.md) - Provides functionality for SFS (stackit file storage)
* [stackit beta sqlserverflex](./stackit_beta_sqlserverflex.md) - Provides functionality for SQLServer Flex

38 changes: 0 additions & 38 deletions docs/stackit_beta_logs_instance.md

This file was deleted.

10 changes: 5 additions & 5 deletions docs/stackit_beta_logs.md → docs/stackit_logs.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## stackit beta logs
## stackit logs

Provides functionality for Logs

Expand All @@ -7,13 +7,13 @@ Provides functionality for Logs
Provides functionality for Logs.

```
stackit beta logs [flags]
stackit logs [flags]
```

### Options

```
-h, --help Help for "stackit beta logs"
-h, --help Help for "stackit logs"
```

### Options inherited from parent commands
Expand All @@ -29,6 +29,6 @@ stackit beta logs [flags]

### SEE ALSO

* [stackit beta](./stackit_beta.md) - Contains beta STACKIT CLI commands
* [stackit beta logs instance](./stackit_beta_logs_instance.md) - Provides functionality for Logs instances
* [stackit](./stackit.md) - Manage STACKIT resources using the command line
* [stackit logs instance](./stackit_logs_instance.md) - Provides functionality for Logs instances

38 changes: 38 additions & 0 deletions docs/stackit_logs_instance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## stackit logs instance

Provides functionality for Logs instances

### Synopsis

Provides functionality for Logs instances.

```
stackit logs instance [flags]
```

### Options

```
-h, --help Help for "stackit logs instance"
```

### 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 logs](./stackit_logs.md) - Provides functionality for Logs
* [stackit logs instance create](./stackit_logs_instance_create.md) - Creates a Logs instance
* [stackit logs instance delete](./stackit_logs_instance_delete.md) - Deletes the given Logs instance
* [stackit logs instance describe](./stackit_logs_instance_describe.md) - Shows details of a Logs instance
* [stackit logs instance list](./stackit_logs_instance_list.md) - Lists Logs instances
* [stackit logs instance update](./stackit_logs_instance_update.md) - Updates a Logs instance

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## stackit beta logs instance create
## stackit logs instance create

Creates a Logs instance

Expand All @@ -7,20 +7,20 @@ Creates a Logs instance
Creates a Logs instance.

```
stackit beta logs instance create [flags]
stackit logs instance create [flags]
```

### Examples

```
Create a Logs instance with name "my-instance" and retention time 10 days
$ stackit beta logs instance create --display-name "my-instance" --retention-days 10
$ stackit logs instance create --display-name "my-instance" --retention-days 10

Create a Logs instance with name "my-instance", retention time 10 days, and a description
$ stackit beta logs instance create --display-name "my-instance" --retention-days 10 --description "Description of the instance"
$ stackit logs instance create --display-name "my-instance" --retention-days 10 --description "Description of the instance"

Create a Logs instance with name "my-instance", retention time 10 days, and restrict access to a specific range of IP addresses.
$ stackit beta logs instance create --display-name "my-instance" --retention-days 10 --acl 1.2.3.0/24
$ stackit logs instance create --display-name "my-instance" --retention-days 10 --acl 1.2.3.0/24
```

### Options
Expand All @@ -29,7 +29,7 @@ stackit beta logs instance create [flags]
--acl strings Access control list
--description string Description
--display-name string Display name
-h, --help Help for "stackit beta logs instance create"
-h, --help Help for "stackit logs instance create"
--retention-days int The days for how long the logs should be stored before being cleaned up
```

Expand All @@ -46,5 +46,5 @@ stackit beta logs instance create [flags]

### SEE ALSO

* [stackit beta logs instance](./stackit_beta_logs_instance.md) - Provides functionality for Logs instances
* [stackit logs instance](./stackit_logs_instance.md) - Provides functionality for Logs instances

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## stackit beta logs instance delete
## stackit logs instance delete

Deletes the given Logs instance

Expand All @@ -7,20 +7,20 @@ Deletes the given Logs instance
Deletes the given Logs instance.

```
stackit beta logs instance delete INSTANCE_ID [flags]
stackit logs instance delete INSTANCE_ID [flags]
```

### Examples

```
Delete a Logs instance with ID "xxx"
$ stackit beta logs instance delete "xxx"
$ stackit logs instance delete "xxx"
```

### Options

```
-h, --help Help for "stackit beta logs instance delete"
-h, --help Help for "stackit logs instance delete"
```

### Options inherited from parent commands
Expand All @@ -36,5 +36,5 @@ stackit beta logs instance delete INSTANCE_ID [flags]

### SEE ALSO

* [stackit beta logs instance](./stackit_beta_logs_instance.md) - Provides functionality for Logs instances
* [stackit logs instance](./stackit_logs_instance.md) - Provides functionality for Logs instances

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## stackit beta logs instance describe
## stackit logs instance describe

Shows details of a Logs instance

Expand All @@ -7,23 +7,23 @@ Shows details of a Logs instance
Shows details of a Logs instance

```
stackit beta logs instance describe INSTANCE_ID [flags]
stackit logs instance describe INSTANCE_ID [flags]
```

### Examples

```
Get details of a Logs instance with ID "xxx"
$ stackit beta logs instance describe xxx
$ stackit logs instance describe xxx

Get details of a Logs instance with ID "xxx" in JSON format
$ stackit beta logs instance describe xxx --output-format json
$ stackit logs instance describe xxx --output-format json
```

### Options

```
-h, --help Help for "stackit beta logs instance describe"
-h, --help Help for "stackit logs instance describe"
```

### Options inherited from parent commands
Expand All @@ -39,5 +39,5 @@ stackit beta logs instance describe INSTANCE_ID [flags]

### SEE ALSO

* [stackit beta logs instance](./stackit_beta_logs_instance.md) - Provides functionality for Logs instances
* [stackit logs instance](./stackit_logs_instance.md) - Provides functionality for Logs instances

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## stackit beta logs instance list
## stackit logs instance list

Lists Logs instances

Expand All @@ -7,23 +7,23 @@ Lists Logs instances
Lists Logs instances within the project.

```
stackit beta logs instance list [flags]
stackit logs instance list [flags]
```

### Examples

```
List all Logs instances
$ stackit beta logs instance list
$ stackit logs instance list

List the first 10 Logs instances
$ stackit beta logs instance list --limit=10
$ stackit logs instance list --limit=10
```

### Options

```
-h, --help Help for "stackit beta logs instance list"
-h, --help Help for "stackit logs instance list"
--limit int Limit the output to the first n elements
```

Expand All @@ -40,5 +40,5 @@ stackit beta logs instance list [flags]

### SEE ALSO

* [stackit beta logs instance](./stackit_beta_logs_instance.md) - Provides functionality for Logs instances
* [stackit logs instance](./stackit_logs_instance.md) - Provides functionality for Logs instances

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## stackit beta logs instance update
## stackit logs instance update

Updates a Logs instance

Expand All @@ -7,20 +7,20 @@ Updates a Logs instance
Updates a Logs instance.

```
stackit beta logs instance update INSTANCE_ID [flags]
stackit logs instance update INSTANCE_ID [flags]
```

### Examples

```
Update the display name of the Logs instance with ID "xxx"
$ stackit beta logs instance update xxx --display-name new-name
$ stackit logs instance update xxx --display-name new-name

Update the retention time of the Logs instance with ID "xxx"
$ stackit beta logs instance update xxx --retention-days 40
$ stackit logs instance update xxx --retention-days 40

Update the ACL of the Logs instance with ID "xxx"
$ stackit beta logs instance update xxx --acl 1.2.3.0/24
$ stackit logs instance update xxx --acl 1.2.3.0/24
```

### Options
Expand All @@ -29,7 +29,7 @@ stackit beta logs instance update INSTANCE_ID [flags]
--acl strings Access control list
--description string Description
--display-name string Display name
-h, --help Help for "stackit beta logs instance update"
-h, --help Help for "stackit logs instance update"
--retention-days int The days for how long the logs should be stored before being cleaned up
```

Expand All @@ -46,5 +46,5 @@ stackit beta logs instance update INSTANCE_ID [flags]

### SEE ALSO

* [stackit beta logs instance](./stackit_beta_logs_instance.md) - Provides functionality for Logs instances
* [stackit logs instance](./stackit_logs_instance.md) - Provides functionality for Logs instances

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ require (
github.com/stackitcloud/stackit-sdk-go/services/git v0.10.3
github.com/stackitcloud/stackit-sdk-go/services/iaas v1.3.0
github.com/stackitcloud/stackit-sdk-go/services/intake v0.4.4
github.com/stackitcloud/stackit-sdk-go/services/logs v0.4.0
github.com/stackitcloud/stackit-sdk-go/services/logs v0.5.2
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v1.5.8
github.com/stackitcloud/stackit-sdk-go/services/opensearch v0.24.6
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.3.5
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,8 @@ github.com/stackitcloud/stackit-sdk-go/services/logme v0.25.6 h1:4x30lC+YBmo7Xps
github.com/stackitcloud/stackit-sdk-go/services/logme v0.25.6/go.mod h1:ewaYUiZcBTSS6urE5zEJBPCqxu70w2IjnBHCvnKdFKE=
github.com/stackitcloud/stackit-sdk-go/services/logs v0.4.0 h1:EOUVSKvu/m5N+psxeB69IIpANev/jw6HIw2yfh/HO7w=
github.com/stackitcloud/stackit-sdk-go/services/logs v0.4.0/go.mod h1:m4IjH1/RtJOF072kjAB0E/ejoIc++myrKmIahphfO6Q=
github.com/stackitcloud/stackit-sdk-go/services/logs v0.5.2 h1:vr4atxFRT+EL+DqONMT5R44f7AzEMbePa9U7PEE0THU=
github.com/stackitcloud/stackit-sdk-go/services/logs v0.5.2/go.mod h1:CAPsiTX7osAImfrG5RnIjaJ/Iz3QpoBKuH2fS346wuQ=
github.com/stackitcloud/stackit-sdk-go/services/mariadb v0.25.3 h1:Y5Ct3Zi5UcIOwjKMWpKl0nrqiq7psTf4NJv0IKgwTkc=
github.com/stackitcloud/stackit-sdk-go/services/mariadb v0.25.3/go.mod h1:TMl5WcpjzUiAlLWaxMKbu9ysDzFziSPgg4xLxj9jjfY=
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v1.5.8 h1:S7t4wcT6SN8ZzdoY8d6VbF903zFpGjzqrU0FN27rJPg=
Expand Down
2 changes: 0 additions & 2 deletions internal/cmd/beta/beta.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/edge"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/intake"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/kms"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/logs"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/sfs"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
Expand Down Expand Up @@ -49,6 +48,5 @@ func addSubcommands(cmd *cobra.Command, params *types.CmdParams) {
cmd.AddCommand(edge.NewCmd(params))
cmd.AddCommand(intake.NewCmd(params))
cmd.AddCommand(kms.NewCmd(params))
cmd.AddCommand(logs.NewCmd(params))
cmd.AddCommand(cdn.NewCmd(params))
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Example: examples.Build(
examples.NewExample(
`Create a Logs instance with name "my-instance" and retention time 10 days`,
`$ stackit beta logs instance create --display-name "my-instance" --retention-days 10`),
`$ stackit logs instance create --display-name "my-instance" --retention-days 10`),
examples.NewExample(
`Create a Logs instance with name "my-instance", retention time 10 days, and a description`,
`$ stackit beta logs instance create --display-name "my-instance" --retention-days 10 --description "Description of the instance"`),
`$ stackit logs instance create --display-name "my-instance" --retention-days 10 --description "Description of the instance"`),
examples.NewExample(
`Create a Logs instance with name "my-instance", retention time 10 days, and restrict access to a specific range of IP addresses.`,
`$ stackit beta logs instance create --display-name "my-instance" --retention-days 10 --acl 1.2.3.0/24`),
`$ stackit logs instance create --display-name "my-instance" --retention-days 10 --acl 1.2.3.0/24`),
),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := context.Background()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Example: examples.Build(
examples.NewExample(
`Delete a Logs instance with ID "xxx"`,
`$ stackit beta logs instance delete "xxx"`),
`$ stackit logs instance delete "xxx"`),
),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := context.Background()
Expand Down
Loading
Loading