yc compute instance attach-new-disk
Статья создана
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. |