mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 23:08:48 +00:00
gcloud: Wed Jan 10 10:17:49 UTC 2024
This commit is contained in:
parent
08ad88258a
commit
5fec13c692
262 changed files with 3211 additions and 4501 deletions
|
|
@ -30,15 +30,15 @@ EXAMPLES
|
|||
--zone=us-central1-a --update-labels=k0=value1,k1=value2 \
|
||||
--remove-labels=k3
|
||||
|
||||
Labels can be used to identify the disk. To list disks with the 'k1:value2'
|
||||
label, run:
|
||||
Labels can be used to identify the instance. To list instances with the
|
||||
'k1:value2' label, run:
|
||||
|
||||
$ gcloud alpha compute instances list --filter='labels.k1:value2'
|
||||
|
||||
To list only the labels when describing a resource, use --format to filter
|
||||
the result:
|
||||
|
||||
$ gcloud alpha compute instances describe example-disk \
|
||||
$ gcloud alpha compute instances describe example-instance \
|
||||
--format="default(labels)"
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue