1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-11 07:29:40 +00:00

gcloud: Wed Mar 23 08:27:29 UTC 2022

This commit is contained in:
Automated 2022-03-23 08:27:29 +00:00
parent 971306823a
commit cd34e797ae
109 changed files with 1563 additions and 627 deletions

View file

@ -309,7 +309,9 @@ FLAGS
--idle-timeout-sec=IDLE_TIMEOUT_SEC
Specifies how long to keep a connection tracking table entry while
there is no matching traffic (in seconds).
there is no matching traffic (in seconds). Applicable only for backend
service-based network load balancers and internal TCP/UDP load
balancers as part of a connection tracking policy.
--load-balancing-scheme=LOAD_BALANCING_SCHEME; default="EXTERNAL"
Specifies the load balancer type. Choose EXTERNAL for load balancers

View file

@ -227,7 +227,9 @@ FLAGS
--idle-timeout-sec=IDLE_TIMEOUT_SEC
Specifies how long to keep a connection tracking table entry while
there is no matching traffic (in seconds).
there is no matching traffic (in seconds). Applicable only for backend
service-based network load balancers and internal TCP/UDP load
balancers as part of a connection tracking policy.
--locality-lb-policy=LOCALITY_LB_POLICY
The load balancing algorithm used within the scope of the locality.

View file

@ -16,10 +16,12 @@ SYNOPSIS
[--[no-]enable-nested-virtualization] [--[no-]enable-uefi-networking]
[--host-error-timeout-seconds=HOST_ERROR_TIMEOUT_SECONDS]
[--instance-termination-action=INSTANCE_TERMINATION_ACTION]
[--ipv6-network-tier=IPV6_NETWORK_TIER] [--labels=[KEY=VALUE,...]]
[--ipv6-network-tier=IPV6_NETWORK_TIER]
[--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]
[--max-run-duration=MAX_RUN_DURATION]
[--mesh=[gke-cluster=GKE-CLUSTER],[workload=WORKLOAD]]
[--metadata=KEY=VALUE,[KEY=VALUE,...]]
[--metadata-from-file=KEY=LOCAL_FILE_PATH,[...]]
@ -37,6 +39,7 @@ SYNOPSIS
[--shielded-vtpm] [--source-instance=SOURCE_INSTANCE]
[--source-instance-zone=SOURCE_INSTANCE_ZONE] [--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]
[--address=ADDRESS | --no-address]
@ -379,6 +382,16 @@ FLAGS
PREMIUM
High quality, Google-grade network tier.
--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.
@ -425,6 +438,22 @@ 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.
--mesh=[gke-cluster=GKE-CLUSTER],[workload=WORKLOAD]
Controls whether the Anthos Service Mesh service proxy (Envoy) and
agent are installed and configured on the VM. "cloud-platform" scope is
@ -740,6 +769,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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -56,7 +56,8 @@ FLAGS
network is used if unspecified.
This is only supported for NEGs with endpoint type gce-vm-ip-port,
non-gcp-private-ip-port, gce-vm-primary-ip, or gce-vm-ip.
non-gcp-private-ip-port, gce-vm-primary-ip, gce-vm-ip, or
private-service-connect.
--network-endpoint-type=NETWORK_ENDPOINT_TYPE; default="gce-vm-ip-port"
Determines the spec of endpoints attached to this group.
@ -108,8 +109,7 @@ FLAGS
private-service-connect
The network endpoint corresponds to a service outside the VPC,
accessed via Private Service Connect. The network, subnet, and
default port must not be set.
accessed via Private Service Connect.
NETWORK_ENDPOINT_TYPE must be one of: gce-vm-ip-port,
internet-ip-port, internet-fqdn-port, non-gcp-private-ip-port,

View file

@ -2,7 +2,8 @@ NAME
gcloud alpha compute url-maps validate - validate a URL map
SYNOPSIS
gcloud alpha compute url-maps validate [--source=SOURCE]
gcloud alpha compute url-maps validate
[--load-balancing-scheme=LOAD_BALANCING_SCHEME] [--source=SOURCE]
[--global | --region=REGION] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
@ -16,6 +17,27 @@ EXAMPLES
$ gcloud alpha compute url-maps validate --source=<path-to-file>
FLAGS
--load-balancing-scheme=LOAD_BALANCING_SCHEME
Specifies the load balancer type(s) this validation request is for. Use
EXTERNAL_MANAGED for HTTP/HTTPS External Global Load Balancer with
Advanced Traffic Management. Use EXTERNAL for Classic HTTP/HTTPS
External Global Load Balancer.
Other load balancer types are not supported. For more information,
refer to Choosing a load balancer
(https://cloud.google.com/load-balancing/docs/choosing-load-balancer/).
If unspecified, the load balancing scheme will be inferred from the
backend service resources this URL map references. If that can not be
inferred (for example, this URL map only references backend buckets, or
this URL map is for rewrites and redirects only and doesn't reference
any backends), EXTERNAL will be used as the default type.
If specified, the scheme must not conflict with the load balancing
scheme of the backend service resources this URL map references.
LOAD_BALANCING_SCHEME must be one of: EXTERNAL, EXTERNAL_MANAGED.
--source=SOURCE
Path to a YAML file containing configuration export data. The YAML file
must not contain any output-only fields. Alternatively, you may omit