gcloud compute instances add-tags
NAME
--format
FORMAT
]--help
]--project
PROJECT_ID
]--quiet
, -q
]--tags
TAG
[TAG
…]]--zone
ZONE
]-h
]gcloud compute instances add-tags
is used to add tags to Google Compute Engine virtual
machine instances. For example, running:$ gcloud compute instances add-tags example-instance --tags tag-1 tag-2
tag-1
and tag-2
to example-instance
.gcloud compute firewall-rules create
(1) for more details.NAME
--tags
TAG
[TAG
…]
--zone
ZONE
compute/zone
property:$ gcloud config set compute/zone ZONE
$ gcloud compute zones list
$ gcloud config unset compute/zone
CLOUDSDK_COMPUTE_ZONE
.--format
FORMAT
json
, text
, yaml
.
--help
--project
PROJECT_ID
--quiet
, -q
-h
compute
component. See
installing components
if it is not installed.