Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.35 KB

stackit_server_volume_attach.md

File metadata and controls

45 lines (31 loc) · 1.35 KB

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[=true|false]   Delete the volume during the termination of the server. (default false)
  -h, --help[=true|false]                    Help for "stackit server volume attach"
      --server-id string                     Server ID

Options inherited from parent commands

  -y, --assume-yes[=true|false]   If set, skips all confirmation prompts
      --async[=true|false]        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