1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-18 23:08:48 +00:00

gcloud: Wed Nov 20 10:03:22 UTC 2024

This commit is contained in:
Automated 2024-11-20 10:03:22 +00:00
parent a63704a3af
commit ad2752c6c9
198 changed files with 7874 additions and 336 deletions

View file

@ -105,10 +105,10 @@ OPTIONAL FLAGS
accelerator-optimized-a3, accelerator-optimized-a3-mega,
compute-optimized, compute-optimized-c2d, compute-optimized-c3,
compute-optimized-c3d, compute-optimized-h3, general-purpose,
general-purpose-c4, general-purpose-e2, general-purpose-n2,
general-purpose-n2d, general-purpose-n4, general-purpose-t2d,
graphics-optimized, memory-optimized, memory-optimized-m3,
storage-optimized-z3.
general-purpose-c4, general-purpose-c4a, general-purpose-e2,
general-purpose-n2, general-purpose-n2d, general-purpose-n4,
general-purpose-t2d, graphics-optimized, memory-optimized,
memory-optimized-m3, storage-optimized-z3.
Manage the reservations to be created with the commitment.

View file

@ -0,0 +1,134 @@
NAME
gcloud compute disks convert - convert a Compute Engine Persistent Disk
volume to a Hyperdisk volume
SYNOPSIS
gcloud compute disks convert DISK_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
Convert Compute Engine Persistent Disk volumes to Hyperdisk volumes.
gcloud compute disks convert converts a Compute Engine Persistent Disk
volume to a Hyperdisk volume. For a comprehensive guide, refer to:
https://cloud.google.com/sdk/gcloud/reference/compute/disks/convert.
EXAMPLES
The following command converts a PD Standard disk to a Hyperdisk
Throughput:
$ gcloud compute disks convert my-disk-1 --zone=ZONE \
--target-disk-type=hyperdisk-throughput
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
a Hyperdisk Balanced volume, specify hyperdisk-balanced. To get a list
of available disk types, run gcloud compute disk-types list.
OPTIONAL FLAGS
Key resource - The Cloud KMS (Key Management Service) cryptokey that will
be used to protect the disk. The 'Compute Engine Service Agent' service
account must hold permission 'Cloud KMS CryptoKey Encrypter/Decrypter'.
The arguments in this 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 the kms-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 group are specified.
--kms-keyring=KMS_KEYRING
The KMS keyring of the key.
To set the kms-keyring attribute:
▸ provide the argument --kms-key on the command line with a fully
specified name;
▸ provide the argument --kms-keyring on the command line.
--kms-location=KMS_LOCATION
The Google Cloud location for the key.
To set the kms-location attribute:
▸ provide the argument --kms-key on the command line with a fully
specified 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 the kms-project attribute:
▸ provide the argument --kms-key on the command line with a fully
specified name;
▸ provide the argument --kms-project on the command line;
▸ set the property core/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 to select a region (interactive mode only).
To avoid prompting when this flag is omitted, you can set the
compute/region property:
$ gcloud config set compute/region REGION
A list of regions can be fetched by running:
$ gcloud compute regions list
To unset the property, run:
$ gcloud config unset compute/region
Alternatively, the region can be stored in the environment variable
CLOUDSDK_COMPUTE_REGION.
--zone=ZONE
Zone of the disk to operate on. If not specified and the compute/zone
property isn't set, you might be prompted to select a zone
(interactive mode only).
To avoid prompting when this flag is omitted, you can set the
compute/zone property:
$ gcloud config set compute/zone ZONE
A list of zones can be fetched by running:
$ gcloud compute zones list
To unset the property, run:
$ gcloud config unset compute/zone
Alternatively, the zone can be stored in the environment variable
CLOUDSDK_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
These variants are also available:
$ gcloud alpha compute disks convert
$ gcloud beta compute disks convert

View file

@ -37,6 +37,9 @@ COMMANDS
add-resource-policies
Add resource policies to a Compute Engine disk.
convert
Convert a Compute Engine Persistent Disk volume to a Hyperdisk volume.
create
Create Compute Engine persistent disks.

View file

@ -745,17 +745,17 @@ FLAGS
the subnet or legacy network IP range.
--provisioning-model=PROVISIONING_MODEL
Specifies provisioning model, which determines price, obtainability,
and runtime for the VM instance. PROVISIONING_MODEL must be one of:
Specifies the provisioning model for your VM instances. This choice
affects the price, availability, and how long your VM instances can
run. PROVISIONING_MODEL must be one of:
SPOT
Spot VMs are spare capacity; Spot VMs are discounted to have much
lower prices than standard VMs but have no guaranteed runtime. Spot
VMs are the new version of preemptible VM instances, except Spot
VMs do not have a 24-hour maximum runtime.
Compute Engine may stop a Spot VM instance whenever it needs
capacity. Because Spot VM instances don't have a guaranteed
runtime, they come at a discounted price.
STANDARD
Default. Standard provisioning model for VM instances, which has
user-controlled runtime but no Spot discounts.
The default option. The STANDARD provisioning model gives you full
control over your VM instances' runtime.
--region=REGION
Region of the subnetwork to attach. If not specified, you might be

View file

@ -693,17 +693,17 @@ OPTIONAL FLAGS
instances can not be restarted and will not migrate.
--provisioning-model=PROVISIONING_MODEL
Specifies provisioning model, which determines price, obtainability,
and runtime for the VM instance. PROVISIONING_MODEL must be one of:
Specifies the provisioning model for your VM instances. This choice
affects the price, availability, and how long your VM instances can
run. PROVISIONING_MODEL must be one of:
SPOT
Spot VMs are spare capacity; Spot VMs are discounted to have much
lower prices than standard VMs but have no guaranteed runtime. Spot
VMs are the new version of preemptible VM instances, except Spot
VMs do not have a 24-hour maximum runtime.
Compute Engine may stop a Spot VM instance whenever it needs
capacity. Because Spot VM instances don't have a guaranteed
runtime, they come at a discounted price.
STANDARD
Default. Standard provisioning model for VM instances, which has
user-controlled runtime but no Spot discounts.
The default option. The STANDARD provisioning model gives you full
control over your VM instances' runtime.
--resource-manager-tags=[KEY=VALUE,...]
Specifies a list of resource manager tags to apply to the instance.

View file

@ -846,17 +846,17 @@ FLAGS
the subnet or legacy network IP range.
--provisioning-model=PROVISIONING_MODEL
Specifies provisioning model, which determines price, obtainability,
and runtime for the VM instance. PROVISIONING_MODEL must be one of:
Specifies the provisioning model for your VM instances. This choice
affects the price, availability, and how long your VM instances can
run. PROVISIONING_MODEL must be one of:
SPOT
Spot VMs are spare capacity; Spot VMs are discounted to have much
lower prices than standard VMs but have no guaranteed runtime. Spot
VMs are the new version of preemptible VM instances, except Spot
VMs do not have a 24-hour maximum runtime.
Compute Engine may stop a Spot VM instance whenever it needs
capacity. Because Spot VM instances don't have a guaranteed
runtime, they come at a discounted price.
STANDARD
Default. Standard provisioning model for VM instances, which has
user-controlled runtime but no Spot discounts.
The default option. The STANDARD provisioning model gives you full
control over your VM instances' runtime.
--require-csek-key-create
Refuse to create resources not protected by a user managed key in the

View file

@ -750,17 +750,17 @@ FLAGS
the subnet or legacy network IP range.
--provisioning-model=PROVISIONING_MODEL
Specifies provisioning model, which determines price, obtainability,
and runtime for the VM instance. PROVISIONING_MODEL must be one of:
Specifies the provisioning model for your VM instances. This choice
affects the price, availability, and how long your VM instances can
run. PROVISIONING_MODEL must be one of:
SPOT
Spot VMs are spare capacity; Spot VMs are discounted to have much
lower prices than standard VMs but have no guaranteed runtime. Spot
VMs are the new version of preemptible VM instances, except Spot
VMs do not have a 24-hour maximum runtime.
Compute Engine may stop a Spot VM instance whenever it needs
capacity. Because Spot VM instances don't have a guaranteed
runtime, they come at a discounted price.
STANDARD
Default. Standard provisioning model for VM instances, which has
user-controlled runtime but no Spot discounts.
The default option. The STANDARD provisioning model gives you full
control over your VM instances' runtime.
--resource-policies=[RESOURCE_POLICY,...]
A list of resource policy names to be added to the instance. The

View file

@ -73,17 +73,17 @@ FLAGS
to enable and --no-preemptible to disable.
--provisioning-model=PROVISIONING_MODEL
Specifies provisioning model, which determines price, obtainability,
and runtime for the VM instance. PROVISIONING_MODEL must be one of:
Specifies the provisioning model for your VM instances. This choice
affects the price, availability, and how long your VM instances can
run. PROVISIONING_MODEL must be one of:
SPOT
Spot VMs are spare capacity; Spot VMs are discounted to have much
lower prices than standard VMs but have no guaranteed runtime. Spot
VMs are the new version of preemptible VM instances, except Spot
VMs do not have a 24-hour maximum runtime.
Compute Engine may stop a Spot VM instance whenever it needs
capacity. Because Spot VM instances don't have a guaranteed
runtime, they come at a discounted price.
STANDARD
Default. Standard provisioning model for VM instances, which has
user-controlled runtime but no Spot discounts.
The default option. The STANDARD provisioning model gives you full
control over your VM instances' runtime.
--[no-]restart-on-failure
The instances will be restarted if they are terminated by Compute