mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 06:47:12 +00:00
gcloud: Wed Apr 23 10:54:24 UTC 2025
This commit is contained in:
parent
b589c4c4ad
commit
4d8dd33b3e
138 changed files with 4506 additions and 597 deletions
63
gcloud/compute/reservations/blocks/describe
Normal file
63
gcloud/compute/reservations/blocks/describe
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
NAME
|
||||
gcloud compute reservations blocks describe - describe a Compute Engine
|
||||
reservation block
|
||||
|
||||
SYNOPSIS
|
||||
gcloud compute reservations blocks describe RESERVATION
|
||||
--block-name=BLOCK_NAME [--zone=ZONE] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Describe a Compute Engine reservation block.
|
||||
|
||||
EXAMPLES
|
||||
To describe a reservation block in reservation my-reservation in my-zone
|
||||
with block name my-reservation-block-0001, run:
|
||||
|
||||
$ gcloud compute reservations blocks describe my-reservation \
|
||||
--zone=my-zone --block-name=my-reservation-block-0001
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
RESERVATION
|
||||
Name of the reservation to describe.
|
||||
|
||||
REQUIRED FLAGS
|
||||
--block-name=BLOCK_NAME
|
||||
The name of the reservation block.
|
||||
|
||||
OPTIONAL FLAGS
|
||||
--zone=ZONE
|
||||
Zone of the reservation to describe. 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 reservations blocks describe
|
||||
|
||||
$ gcloud beta compute reservations blocks describe
|
||||
|
||||
34
gcloud/compute/reservations/blocks/help
Normal file
34
gcloud/compute/reservations/blocks/help
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
NAME
|
||||
gcloud compute reservations blocks - manage Compute Engine reservation
|
||||
blocks
|
||||
|
||||
SYNOPSIS
|
||||
gcloud compute reservations blocks COMMAND [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Manage Compute Engine reservation blocks.
|
||||
|
||||
GCLOUD WIDE FLAGS
|
||||
These flags are available to all commands: --help.
|
||||
|
||||
Run $ gcloud help for details.
|
||||
|
||||
COMMANDS
|
||||
COMMAND is one of the following:
|
||||
|
||||
describe
|
||||
Describe a Compute Engine reservation block.
|
||||
|
||||
list
|
||||
List Compute Engine reservation blocks.
|
||||
|
||||
perform-maintenance
|
||||
Perform maintenance on a reservation block within a reservation.
|
||||
|
||||
NOTES
|
||||
These variants are also available:
|
||||
|
||||
$ gcloud alpha compute reservations blocks
|
||||
|
||||
$ gcloud beta compute reservations blocks
|
||||
|
||||
99
gcloud/compute/reservations/blocks/list
Normal file
99
gcloud/compute/reservations/blocks/list
Normal file
|
|
@ -0,0 +1,99 @@
|
|||
NAME
|
||||
gcloud compute reservations blocks list - list Compute Engine reservation
|
||||
blocks
|
||||
|
||||
SYNOPSIS
|
||||
gcloud compute reservations blocks list RESERVATION [--zone=ZONE]
|
||||
[--filter=EXPRESSION] [--limit=LIMIT] [--page-size=PAGE_SIZE]
|
||||
[--sort-by=[FIELD,...]] [--uri] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
gcloud compute reservations blocks list displays all Compute Engine
|
||||
reservation blocks in a densely deployed reservation.
|
||||
|
||||
EXAMPLES
|
||||
To list all reservation blocks in a densely deployed reservation in table
|
||||
form, run:
|
||||
|
||||
$ gcloud compute reservations blocks list my-reservation \
|
||||
--zone=us-central1-a --project=my-project
|
||||
|
||||
To list the URIs of all reservation blocks in a densely deployed
|
||||
reservation, run:
|
||||
|
||||
$ gcloud compute reservations blocks list my-reservation \
|
||||
--zone=us-central1-a --project=my-project --uri
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
RESERVATION
|
||||
Name of the reservation to operate on.
|
||||
|
||||
FLAGS
|
||||
--zone=ZONE
|
||||
Zone of the reservation 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.
|
||||
|
||||
LIST COMMAND FLAGS
|
||||
--filter=EXPRESSION
|
||||
Apply a Boolean filter EXPRESSION to each resource item to be listed.
|
||||
If the expression evaluates True, then that item is listed. For more
|
||||
details and examples of filter expressions, run $ gcloud topic filters.
|
||||
This flag interacts with other flags that are applied in this order:
|
||||
--flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--limit=LIMIT
|
||||
Maximum number of resources to list. The default is unlimited. This
|
||||
flag interacts with other flags that are applied in this order:
|
||||
--flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--page-size=PAGE_SIZE
|
||||
Some services group resource list output into pages. This flag
|
||||
specifies the maximum number of resources per page. The default is
|
||||
determined by the service if it supports paging, otherwise it is
|
||||
unlimited (no paging). Paging may be applied before or after --filter
|
||||
and --limit depending on the service.
|
||||
|
||||
--sort-by=[FIELD,...]
|
||||
Comma-separated list of resource field key names to sort by. The
|
||||
default order is ascending. Prefix a field with ``~'' for descending
|
||||
order on that field. This flag interacts with other flags that are
|
||||
applied in this order: --flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--uri
|
||||
Print a list of resource URIs instead of the default output, and change
|
||||
the command output to a list of URIs. If this flag is used with
|
||||
--format, the formatting is applied on this URI list. To display URIs
|
||||
alongside other keys instead, use the uri() transform.
|
||||
|
||||
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 reservations blocks list
|
||||
|
||||
$ gcloud beta compute reservations blocks list
|
||||
|
||||
78
gcloud/compute/reservations/blocks/perform-maintenance
Normal file
78
gcloud/compute/reservations/blocks/perform-maintenance
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
NAME
|
||||
gcloud compute reservations blocks perform-maintenance - perform
|
||||
maintenance on a reservation block within a reservation
|
||||
|
||||
SYNOPSIS
|
||||
gcloud compute reservations blocks perform-maintenance RESERVATION
|
||||
--block-name=BLOCK_NAME [--scope=SCOPE] [--zone=ZONE]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Perform maintenance on a reservation block within a reservation.
|
||||
|
||||
EXAMPLES
|
||||
To perform maintenance on a reservation block in reservation my-reservation
|
||||
in my-zone with block name my-reservation-block-0001 with scope all, run:
|
||||
|
||||
$ gcloud compute reservations blocks perform-maintenance \
|
||||
my-reservation --zone=my-zone \
|
||||
--block-name=my-reservation-block-0001 --scope=all
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
RESERVATION
|
||||
Name of the reservation to perform-maintenance.
|
||||
|
||||
REQUIRED FLAGS
|
||||
--block-name=BLOCK_NAME
|
||||
The name of the reservation block.
|
||||
|
||||
OPTIONAL FLAGS
|
||||
--scope=SCOPE
|
||||
The maintenance scope to set for the reservation block. SCOPE must be
|
||||
one of:
|
||||
|
||||
all
|
||||
Perform maintenance on all hosts in the reservation block.
|
||||
running
|
||||
Perform maintenance only on the hosts in the reservation block that
|
||||
have running VMs.
|
||||
unused
|
||||
Perform maintenance only on the hosts in the reservation block that
|
||||
don't have running VMs.
|
||||
|
||||
--zone=ZONE
|
||||
Zone of the reservation to perform-maintenance. 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 reservations blocks perform-maintenance
|
||||
|
||||
$ gcloud beta compute reservations blocks perform-maintenance
|
||||
|
||||
|
|
@ -2,7 +2,7 @@ NAME
|
|||
gcloud compute reservations - manage Compute Engine reservations
|
||||
|
||||
SYNOPSIS
|
||||
gcloud compute reservations COMMAND [GCLOUD_WIDE_FLAG ...]
|
||||
gcloud compute reservations GROUP | COMMAND [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Manage Compute Engine reservations.
|
||||
|
|
@ -18,6 +18,12 @@ GCLOUD WIDE FLAGS
|
|||
|
||||
Run $ gcloud help for details.
|
||||
|
||||
GROUPS
|
||||
GROUP is one of the following:
|
||||
|
||||
blocks
|
||||
Manage Compute Engine reservation blocks.
|
||||
|
||||
COMMANDS
|
||||
COMMAND is one of the following:
|
||||
|
||||
|
|
@ -39,6 +45,10 @@ COMMANDS
|
|||
list
|
||||
List Compute Engine reservations.
|
||||
|
||||
perform-maintenance
|
||||
Perform maintenance on a reservation, only applicable to reservations
|
||||
with reservation blocks.
|
||||
|
||||
remove-iam-policy-binding
|
||||
Remove IAM policy binding from a Compute Engine reservation.
|
||||
|
||||
|
|
|
|||
72
gcloud/compute/reservations/perform-maintenance
Normal file
72
gcloud/compute/reservations/perform-maintenance
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
NAME
|
||||
gcloud compute reservations perform-maintenance - perform maintenance on a
|
||||
reservation, only applicable to reservations with reservation blocks
|
||||
|
||||
SYNOPSIS
|
||||
gcloud compute reservations perform-maintenance RESERVATION [--scope=SCOPE]
|
||||
[--zone=ZONE] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Perform maintenance on a reservation, only applicable to reservations with
|
||||
reservation blocks.
|
||||
|
||||
EXAMPLES
|
||||
To perform maintenance on reservation my-reservation in my-zone with scope
|
||||
all, run:
|
||||
|
||||
$ gcloud compute reservations perform-maintenance my-reservation \
|
||||
--zone=my-zone --scope=all
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
RESERVATION
|
||||
Name of the reservation to perform-maintenance.
|
||||
|
||||
FLAGS
|
||||
--scope=SCOPE
|
||||
The maintenance scope to set for the reservation. SCOPE must be one of:
|
||||
|
||||
all
|
||||
Perform maintenance on all hosts in the reservation.
|
||||
running
|
||||
Perform maintenance only on the hosts in the reservation that have
|
||||
running VMs.
|
||||
unused
|
||||
Perform maintenance only on the hosts in the reservation that don't
|
||||
have running VMs.
|
||||
|
||||
--zone=ZONE
|
||||
Zone of the reservation to perform-maintenance. 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 reservations perform-maintenance
|
||||
|
||||
$ gcloud beta compute reservations perform-maintenance
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue