Yandex Cloud
  • Сервисы
  • Решения
  • Почему Yandex Cloud
  • Сообщество
  • Тарифы
  • Документация
  • Связаться с нами
Подключиться
Language / Region
Проект Яндекса
© 2023 ООО «Яндекс.Облако»
Интерфейс командной строки
  • Начало работы с CLI
  • Пошаговые инструкции
  • Концепции
  • Релизы CLI
  • Решение проблем
  • Справочник CLI (англ.)
    • Overview
    • CLI manage
    • Operations manage
    • Service manage
      • certificate-manager
      • cdn
      • kms
      • ydb
      • dns
      • vpc
      • load-balancer
      • managed-postgresql
      • managed-sqlserver
      • managed-mongodb
      • managed-redis
      • application-load-balancer
      • managed-elasticsearch
      • lockbox
      • managed-clickhouse
      • compute
        • Overview
        • instance
          • Overview
          • list-operations
          • move
          • remove-one-to-one-nat
          • add-one-to-one-nat
          • update-network-interface
          • detach-filesystem
          • attach-filesystem
          • detach-disk
          • attach-new-disk
          • attach-disk
          • restart
          • start
          • stop
          • get-serial-port-output
          • delete
          • remove-labels
          • add-labels
          • remove-metadata
          • add-metadata
          • update-container
          • update
          • create-with-container
          • create
          • list
          • get
        • disk
        • disk-type
        • image
        • snapshot
        • snapshot-schedule
        • zone
        • instance-group
        • placement-group
        • host-type
        • host-group
        • disk-placement-group
        • filesystem
        • gpu-cluster
        • connect-to-serial-port
      • managed-kubernetes
      • resource-manager
      • managed-mysql
      • storage
      • iam
      • dataproc
      • cloud-desktop
      • logging
      • managed-kafka
      • managed-greenplum
      • container
      • iot
      • datatransfer
      • serverless
      • organization-manager
  1. Справочник CLI (англ.)
  2. Service manage
  3. compute
  4. instance
  5. attach-new-disk

yc compute instance attach-new-disk

Статья создана
Yandex Cloud

    Attach new disk to the specified virtual machine instance

    Command Usage

    Syntax:

    yc compute instance attach-new-disk <INSTANCE-NAME>|<INSTANCE-ID> [Flags...] [Global Flags...]

    Flags

    Flag Description
    --id string
    Instance id.
    --name string
    Instance name.
    --async Display information about the operation in progress, without waiting for the operation to complete.
    --disk-name string
    Specifies the name of the disk.
    --type string
    The type of the disk. To get a list of available disk types, run 'yc compute disk-type list'. The default disk type is network-hdd.
    --size byteSize
    The size of the disk in GB. You can also use M and T suffixes to specify smaller or greater size respectively. If not specified, inferred size is used. If the disk is created from a snapshot, disk size of the snapshot is used. If the disk is created from an image, size of the image is used.If no source is specified, default disk size is used.
    --block-size byteSize
    Specifies the block size of the disk in bytes. You can also use K and M suffixes.
    --snapshot-name string
    A source snapshot used to create the disk.
    --snapshot-id string
    An ID of the source snapshot used to create the disk.
    --image-name string
    A source image used to create the disk.
    --image-id string
    An ID of the source image used to create the disk.
    --image-family string
    An image family that is used to create the disk.
    --image-folder-id string
    The folder ID that is used to resolve references for image-name or image-family.
    --disk-placement-group-id string
    An ID of the placement group to create the disk in
    --disk-placement-group-name string
    A placement group to create the disk in
    --device-name string
    Specifies a unique serial number of your choice that is reflected into the /dev/disk/by-id/ tree of a Linux operating system running within the instance.
    --auto-delete Specifies if this persistent disk will be automatically deleted when the instance is deleted.

    Global Flags

    Flag Description
    --profile string
    Set the custom configuration file.
    --debug Debug logging.
    --debug-grpc Debug gRPC logging. Very verbose, used for debugging connection problems.
    --no-user-output Disable printing user intended output to stderr.
    --retry int
    Enable gRPC retries. By default, retries are enabled with maximum 5 attempts.
    Pass 0 to disable retries. Pass any negative value for infinite retries.
    Even infinite retries are capped with 2 minutes timeout.
    --cloud-id string
    Set the ID of the cloud to use.
    --folder-id string
    Set the ID of the folder to use.
    --folder-name string
    Set the name of the folder to use (will be resolved to id).
    --endpoint string
    Set the Cloud API endpoint (host:port).
    --token string
    Set the OAuth token to use.
    --format string
    Set the output format: text (default), yaml, json, json-rest.
    -h,--help Display help for the command.

    Была ли статья полезна?

    Language / Region
    Проект Яндекса
    © 2023 ООО «Яндекс.Облако»