0

I'm using gcloud (command line) and I need to retrieve a list of instance-groups that an instance is a member of. I.e. I have the instance name and I need the instance group.

This retrieves a list of instances in a specified instance-group (but I need it the other way around): gcloud preview instance-groups --zone $ZONE instances --group $INSTANCE_GRP list

Grzenio
  • 35,875
  • 47
  • 158
  • 240
CalM
  • 542
  • 6
  • 14
  • This is not possible. You just need to list all instance groups. – Stephen Weinberg Jul 01 '15 at 15:29
  • That's annoying. I have a lot of instance groups so looping through all of them each time will be expensive. Also, I can see that the Google Cloud console displays this (in the Compute Engine list), so it shouldn't be difficult for gcloud to provide... – CalM Jul 01 '15 at 16:11

0 Answers0