mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 06:47:12 +00:00
gcloud: Wed Mar 23 08:27:29 UTC 2022
This commit is contained in:
parent
971306823a
commit
cd34e797ae
109 changed files with 1563 additions and 627 deletions
|
|
@ -23,6 +23,7 @@ SYNOPSIS
|
|||
[--local-ssd=[device-name=DEVICE-NAME],
|
||||
[interface=INTERFACE],[size=SIZE]]
|
||||
[--location-policy=[ZONE=POLICY,...]] [--machine-type=MACHINE_TYPE]
|
||||
[--max-run-duration=MAX_RUN_DURATION]
|
||||
[--metadata=KEY=VALUE,[KEY=VALUE,...]]
|
||||
[--metadata-from-file=KEY=LOCAL_FILE_PATH,[...]]
|
||||
[--min-count=MIN_COUNT] [--min-cpu-platform=PLATFORM]
|
||||
|
|
@ -37,6 +38,7 @@ SYNOPSIS
|
|||
[--shielded-integrity-monitoring] [--shielded-secure-boot]
|
||||
[--shielded-vtpm] [--source-instance-template=SOURCE_INSTANCE_TEMPLATE]
|
||||
[--subnet=SUBNET] [--tags=TAG,[TAG,...]]
|
||||
[--termination-time=TERMINATION_TIME]
|
||||
[--threads-per-core=THREADS_PER_CORE]
|
||||
[--visible-core-count=VISIBLE_CORE_COUNT]
|
||||
[--boot-disk-kms-key=BOOT_DISK_KMS_KEY
|
||||
|
|
@ -457,6 +459,22 @@ OPTIONAL FLAGS
|
|||
available machine types, run 'gcloud compute machine-types list'. If
|
||||
unspecified, the default type is n1-standard-1.
|
||||
|
||||
--max-run-duration=MAX_RUN_DURATION
|
||||
Limits how long this VM instance can run, specified as a duration
|
||||
relative to the VM instance's most-recent start time. Format the
|
||||
duration, MAX_RUN_DURATION, similar to "T1h2m3s" where you can specify
|
||||
the number of hours, minutes, and seconds using "h", "m", and "s"
|
||||
respectively. Alternatively, to specify a timestamp, use
|
||||
--termination-time instead.
|
||||
|
||||
If neither --max-run-duration nor --termination-time is specified
|
||||
(default), the VM instance runs until prompted by a user action or
|
||||
system event. If either is specified, the VM instance will be
|
||||
terminated using the action specified by --instance-termination-action.
|
||||
For --max-run-duration, the VM instance is terminated whenever the VM's
|
||||
current runtime reaches MAX_RUN_DURATION; the current runtime is reset
|
||||
to zero any time the VM instance is stopped and started again.
|
||||
|
||||
--metadata=KEY=VALUE,[KEY=VALUE,...]
|
||||
Metadata to be made available to the guest operating system running on
|
||||
the instances. Each metadata entry is a key/value pair separated by an
|
||||
|
|
@ -656,6 +674,18 @@ OPTIONAL FLAGS
|
|||
|
||||
$ gcloud compute instances list --filter='tags:tag1'
|
||||
|
||||
--termination-time=TERMINATION_TIME
|
||||
Limits how long this VM instance can run, specified as a time. Format
|
||||
the time, TERMINATION_TIME, as a RFC 3339 timestamp. Alternatively, to
|
||||
specify a duration, use --max-run-duration instead.
|
||||
|
||||
If neither --termination-time nor --max-run-duration is specified
|
||||
(default) the VM instance runs until prompted by a user action or
|
||||
system event. If either is specified, the VM instance will be
|
||||
terminated using the action specified by --instance-termination-action.
|
||||
For --termination-time, the VM instance is terminated only during the
|
||||
specified time.
|
||||
|
||||
--threads-per-core=THREADS_PER_CORE
|
||||
The number of visible threads per physical core. To disable
|
||||
simultaneous multithreading (SMT) set this to 1. Valid values are: 1 or
|
||||
|
|
|
|||
|
|
@ -21,11 +21,13 @@ SYNOPSIS
|
|||
[--instance-termination-action=INSTANCE_TERMINATION_ACTION]
|
||||
[--ipv6-network-tier=IPV6_NETWORK_TIER]
|
||||
[--ipv6-public-ptr-domain=IPV6_PUBLIC_PTR_DOMAIN]
|
||||
[--labels=[KEY=VALUE,...]] [--local-nvdimm=[size=SIZE]]
|
||||
[--key-revocation-action-type=POLICY] [--labels=[KEY=VALUE,...]]
|
||||
[--local-nvdimm=[size=SIZE]]
|
||||
[--local-ssd=[device-name=DEVICE-NAME],
|
||||
[interface=INTERFACE],[size=SIZE]] [--machine-type=MACHINE_TYPE]
|
||||
[--maintenance-freeze-duration=MAINTENANCE_FREEZE_DURATION]
|
||||
[--maintenance-interval=MAINTENANCE_INTERVAL]
|
||||
[--max-run-duration=MAX_RUN_DURATION]
|
||||
[--metadata=KEY=VALUE,[KEY=VALUE,...]]
|
||||
[--metadata-from-file=KEY=LOCAL_FILE_PATH,[...]]
|
||||
[--min-cpu-platform=PLATFORM] [--min-node-cpu=MIN_NODE_CPU]
|
||||
|
|
@ -46,6 +48,7 @@ SYNOPSIS
|
|||
[--source-machine-image=SOURCE_MACHINE_IMAGE]
|
||||
[--source-machine-image-csek-key-file=FILE] [--stack-type=STACK_TYPE]
|
||||
[--subnet=SUBNET] [--tags=TAG,[TAG,...]]
|
||||
[--termination-time=TERMINATION_TIME]
|
||||
[--threads-per-core=THREADS_PER_CORE]
|
||||
[--visible-core-count=VISIBLE_CORE_COUNT] [--zone=ZONE]
|
||||
[--address=ADDRESS | --no-address]
|
||||
|
|
@ -491,6 +494,16 @@ FLAGS
|
|||
PTR record will be used. This option can only be specified for the
|
||||
default network interface, nic0.
|
||||
|
||||
--key-revocation-action-type=POLICY
|
||||
Specifies the behavior of the instance when the KMS key of one of its
|
||||
attached disks is revoked. The default is none. POLICY must be one of:
|
||||
|
||||
none
|
||||
No operation is performed.
|
||||
stop
|
||||
The instance is stopped when the KMS key of one of its attached
|
||||
disks is revoked.
|
||||
|
||||
--labels=[KEY=VALUE,...]
|
||||
List of label KEY=VALUE pairs to add.
|
||||
|
||||
|
|
@ -552,6 +565,22 @@ FLAGS
|
|||
migrations or terminations) on an individual VM. Security updates
|
||||
will still be applied as soon as they are available.
|
||||
|
||||
--max-run-duration=MAX_RUN_DURATION
|
||||
Limits how long this VM instance can run, specified as a duration
|
||||
relative to the VM instance's most-recent start time. Format the
|
||||
duration, MAX_RUN_DURATION, similar to "T1h2m3s" where you can specify
|
||||
the number of hours, minutes, and seconds using "h", "m", and "s"
|
||||
respectively. Alternatively, to specify a timestamp, use
|
||||
--termination-time instead.
|
||||
|
||||
If neither --max-run-duration nor --termination-time is specified
|
||||
(default), the VM instance runs until prompted by a user action or
|
||||
system event. If either is specified, the VM instance will be
|
||||
terminated using the action specified by --instance-termination-action.
|
||||
For --max-run-duration, the VM instance is terminated whenever the VM's
|
||||
current runtime reaches MAX_RUN_DURATION; the current runtime is reset
|
||||
to zero any time the VM instance is stopped and started again.
|
||||
|
||||
--metadata=KEY=VALUE,[KEY=VALUE,...]
|
||||
Metadata to be made available to the guest operating system running on
|
||||
the instances. Each metadata entry is a key/value pair separated by an
|
||||
|
|
@ -782,6 +811,18 @@ FLAGS
|
|||
|
||||
$ gcloud compute instances list --filter='tags:tag1'
|
||||
|
||||
--termination-time=TERMINATION_TIME
|
||||
Limits how long this VM instance can run, specified as a time. Format
|
||||
the time, TERMINATION_TIME, as a RFC 3339 timestamp. Alternatively, to
|
||||
specify a duration, use --max-run-duration instead.
|
||||
|
||||
If neither --termination-time nor --max-run-duration is specified
|
||||
(default) the VM instance runs until prompted by a user action or
|
||||
system event. If either is specified, the VM instance will be
|
||||
terminated using the action specified by --instance-termination-action.
|
||||
For --termination-time, the VM instance is terminated only during the
|
||||
specified time.
|
||||
|
||||
--threads-per-core=THREADS_PER_CORE
|
||||
The number of visible threads per physical core. To disable
|
||||
simultaneous multithreading (SMT) set this to 1. Valid values are: 1 or
|
||||
|
|
|
|||
|
|
@ -70,7 +70,9 @@ NOTES
|
|||
This command is currently in alpha and might change without notice. If this
|
||||
command fails with API permission errors despite specifying the correct
|
||||
project, you might be trying to access an API with an invitation-only early
|
||||
access allowlist. This variant is also available:
|
||||
access allowlist. These variants are also available:
|
||||
|
||||
$ gcloud compute instances resume
|
||||
|
||||
$ gcloud beta compute instances resume
|
||||
|
||||
|
|
|
|||
|
|
@ -13,12 +13,11 @@ DESCRIPTION
|
|||
while it is in the RUNNING state. A suspended instance will be put in
|
||||
SUSPENDED state.
|
||||
|
||||
Note: A suspended instance can be resumed by running the gcloud beta
|
||||
compute instances resume command.
|
||||
Note: A suspended instance can be resumed by running the gcloud compute
|
||||
instances resume command.
|
||||
|
||||
Beta restrictions: Suspending a Preemptible VM is not supported and will
|
||||
result in an API error. Suspending a VM that is using CSEK or GPUs is not
|
||||
supported and will result in an API error.
|
||||
Limitations: See this feature's restrictions at
|
||||
https://cloud.google.com/compute/docs/instances/suspend-resume-instance#limitations
|
||||
|
||||
EXAMPLES
|
||||
To suspend an instance named test-instance, run:
|
||||
|
|
@ -75,7 +74,9 @@ NOTES
|
|||
This command is currently in alpha and might change without notice. If this
|
||||
command fails with API permission errors despite specifying the correct
|
||||
project, you might be trying to access an API with an invitation-only early
|
||||
access allowlist. This variant is also available:
|
||||
access allowlist. These variants are also available:
|
||||
|
||||
$ gcloud compute instances suspend
|
||||
|
||||
$ gcloud beta compute instances suspend
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue