gcloud beta compute disks convert

NAME
gcloud beta compute disks convert - convert a Compute Engine Persistent Disk volume to a Hyperdisk volume
SYNOPSIS
gcloud beta compute disks convertDISK_NAME--target-disk-type=TARGET_DISK_TYPE[--kms-key=KMS_KEY :--kms-keyring=KMS_KEYRING--kms-location=KMS_LOCATION--kms-project=KMS_PROJECT][--region=REGION    |--zone=ZONE][GCLOUD_WIDE_FLAG]
DESCRIPTION
(BETA) Convert Compute Engine Persistent Disk volumes to Hyperdiskvolumes.

gcloud beta compute disks convert converts a Compute EnginePersistent Disk volume to a Hyperdisk volume. For a comprehensive guide, referto:https://cloud.google.com/sdk/gcloud/reference/compute/disks/convert.

EXAMPLES
The following command converts a Persistent Disk volume to a Hyperdisk Balancedvolume:
gcloudbetacomputedisksconvertmy-disk-1--zone=ZONE--target-disk-type=hyperdisk-balanced
POSITIONAL ARGUMENTS
DISK_NAME
Name of the disk to operate on.
REQUIRED FLAGS
--target-disk-type=TARGET_DISK_TYPE
Specifies the type of Hyperdisk to convert to, for example, to convert aHyperdisk Balanced volume, specifyhyperdisk-balanced. To get alist of available disk types, rungcloud compute disk-typeslist.
OPTIONAL FLAGS
Key resource - The Cloud KMS (Key Management Service) cryptokey that will beused to protect the disk. The 'Compute Engine Service Agent' service accountmust hold permission 'Cloud KMS CryptoKey Encrypter/Decrypter'. The arguments inthis group can be used to specify the attributes of this resource.
--kms-key=KMS_KEY
ID of the key or fully qualified identifier for the key.

To set thekms-key attribute:

  • provide the argument--kms-key on the command line.

This flag argument must be specified if any of the other arguments in this groupare specified.

--kms-keyring=KMS_KEYRING
The KMS keyring of the key.

To set thekms-keyring attribute:

  • provide the argument--kms-key on the command line with a fullyspecified name;
  • provide the argument--kms-keyring on the command line.
--kms-location=KMS_LOCATION
The Google Cloud location for the key.

To set thekms-location attribute:

  • provide the argument--kms-key on the command line with a fullyspecified name;
  • provide the argument--kms-location on the command line;
  • provide the argument--region on the command line.
--kms-project=KMS_PROJECT
The Google Cloud project for the key.

To set thekms-project attribute:

  • provide the argument--kms-key on the command line with a fullyspecified name;
  • provide the argument--kms-project on the command line;
  • set the propertycore/project.
At most one of these can be specified:
--region=REGION
Region of the disk to operate on. If not specified, you might be prompted toselect a region (interactive mode only).

To avoid prompting when this flag is omitted, you can set thecompute/region property:

gcloudconfigsetcompute/regionREGION

A list of regions can be fetched by running:

gcloudcomputeregionslist

To unset the property, run:

gcloudconfigunsetcompute/region

Alternatively, the region can be stored in the environment variableCLOUDSDK_COMPUTE_REGION.

--zone=ZONE
Zone of the disk to operate on. If not specified and thecompute/zone property isn't set, you mightbe prompted to select a zone (interactive mode only).

To avoid prompting when this flag is omitted, you can set thecompute/zone property:

gcloudconfigsetcompute/zoneZONE

A list of zones can be fetched by running:

gcloudcomputezoneslist

To unset the property, run:

gcloudconfigunsetcompute/zone

Alternatively, the zone can be stored in the environment variableCLOUDSDK_COMPUTE_ZONE.

GCLOUD WIDE FLAGS
These flags are available to all commands:--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.

Run$gcloud help for details.

NOTES
This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudcomputedisksconvert
gcloudalphacomputedisksconvert

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.