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_beta_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ stackit beta server [flags]
* [stackit beta server describe](./stackit_beta_server_describe.md) - Shows details of a server
* [stackit beta server list](./stackit_beta_server_list.md) - Lists all servers of a project
* [stackit beta server update](./stackit_beta_server_update.md) - Updates a server
* [stackit beta server volume](./stackit_beta_server_volume.md) - Provides functionality for Server volumes

37 changes: 37 additions & 0 deletions docs/stackit_beta_server_volume.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## stackit beta server volume

Provides functionality for Server volumes

### Synopsis

Provides functionality for Server volumes.

```
stackit beta server volume [flags]
```

### Options

```
-h, --help Help for "stackit beta server volume"
```

### 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
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta server](./stackit_beta_server.md) - Provides functionality for Server
* [stackit beta server volume attach](./stackit_beta_server_volume_attach.md) - Attaches a volume to a server
* [stackit beta server volume describe](./stackit_beta_server_volume_describe.md) - Describes a server volume attachment
* [stackit beta server volume detach](./stackit_beta_server_volume_detach.md) - Detaches a volume from a server
* [stackit beta server volume list](./stackit_beta_server_volume_list.md) - Lists all server volumes
* [stackit beta server volume update](./stackit_beta_server_volume_update.md) - Updates an attached volume of a server

44 changes: 44 additions & 0 deletions docs/stackit_beta_server_volume_attach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
## stackit beta server volume attach

Attaches a volume to a server

### Synopsis

Attaches a volume to a server.

```
stackit beta server volume attach [flags]
```

### Examples

```
Attach a volume with ID "xxx" to a server with ID "yyy"
$ stackit beta server volume attach xxx --server-id yyy

Attach a volume with ID "xxx" to a server with ID "yyy" and enable deletion on termination
$ stackit beta server volume attach xxx --server-id yyy --delete-on-termination
```

### Options

```
-b, --delete-on-termination Delete the volume during the termination of the server. (default false)
-h, --help Help for "stackit beta server volume attach"
--server-id string Server 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
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta server volume](./stackit_beta_server_volume.md) - Provides functionality for Server volumes

46 changes: 46 additions & 0 deletions docs/stackit_beta_server_volume_describe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## stackit beta server volume describe

Describes a server volume attachment

### Synopsis

Describes a server volume attachment.

```
stackit beta server volume describe [flags]
```

### Examples

```
Get details of the attachment of volume with ID "xxx" to server with ID "yyy"
$ stackit beta server volume describe xxx --server-id yyy

Get details of the attachment of volume with ID "xxx" to server with ID "yyy" in JSON format
$ stackit beta server volume describe xxx --server-id yyy --output-format json

Get details of the attachment of volume with ID "xxx" to server with ID "yyy" in yaml format
$ stackit beta server volume describe xxx --server-id yyy --output-format yaml
```

### Options

```
-h, --help Help for "stackit beta server volume describe"
--server-id string Server 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
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta server volume](./stackit_beta_server_volume.md) - Provides functionality for Server volumes

40 changes: 40 additions & 0 deletions docs/stackit_beta_server_volume_detach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## stackit beta server volume detach

Detaches a volume from a server

### Synopsis

Detaches a volume from a server.

```
stackit beta server volume detach [flags]
```

### Examples

```
Detaches a volume with ID "xxx" from a server with ID "yyy"
$ stackit beta server volume detach xxx --server-id yyy
```

### Options

```
-h, --help Help for "stackit beta server volume detach"
--server-id string Server 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
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta server volume](./stackit_beta_server_volume.md) - Provides functionality for Server volumes

43 changes: 43 additions & 0 deletions docs/stackit_beta_server_volume_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## stackit beta server volume list

Lists all server volumes

### Synopsis

Lists all server volumes.

```
stackit beta server volume list [flags]
```

### Examples

```
List all volumes for a server with ID "xxx"
$ stackit beta server volume list --server-id xxx

List all volumes for a server with ID "xxx" in JSON format
$ stackit beta server volumes list --server-id xxx --output-format json
```

### Options

```
-h, --help Help for "stackit beta server volume list"
-s, --server-id string Server 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
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta server volume](./stackit_beta_server_volume.md) - Provides functionality for Server volumes

41 changes: 41 additions & 0 deletions docs/stackit_beta_server_volume_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
## stackit beta server volume update

Updates an attached volume of a server

### Synopsis

Updates an attached volume of a server.

```
stackit beta server volume update [flags]
```

### Examples

```
Update a volume with ID "xxx" of a server with ID "yyy" and enables delete on termination
$ stackit beta server volume update xxx --server-id yyy --delete-on-termination
```

### Options

```
-b, --delete-on-termination Delete the volume during the termination of the server. (default false)
-h, --help Help for "stackit beta server volume update"
--server-id string Server 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
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta server volume](./stackit_beta_server_volume.md) - Provides functionality for Server volumes

2 changes: 2 additions & 0 deletions internal/cmd/beta/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/server/describe"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/server/list"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/server/update"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/server/volume"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
"github.com/stackitcloud/stackit-cli/internal/pkg/print"
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"
Expand Down Expand Up @@ -35,4 +36,5 @@ func addSubcommands(cmd *cobra.Command, p *print.Printer) {
cmd.AddCommand(describe.NewCmd(p))
cmd.AddCommand(list.NewCmd(p))
cmd.AddCommand(update.NewCmd(p))
cmd.AddCommand(volume.NewCmd(p))
}
Loading