10

I am executing the below command to get the list of all instances in a GCP project, but this doesn't display the tags attached to the VMs..! FYI..

gcloud compute instances list

Could you please help here..!

Regards, Rohith

2

1 Answer 1

13

Get the detailed output using gcloud topic formats:

gcloud compute instances list --format=json

Or

gcloud compute instances list --format='table(name,status,tags.list())'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.