## stackit server volume attach

Attaches a volume to a server

### Synopsis

Attaches a volume to a server.

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

### Examples

```
  Attach a volume with ID "xxx" to a server with ID "yyy"
  $ stackit 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 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 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
      --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 server volume](./stackit_server_volume.md)	 - Provides functionality for server volumes

