Skip to content

Instantly share code, notes, and snippets.

@zycon
Last active December 10, 2019 11:51
Show Gist options
  • Save zycon/f3dd8efb8b0238a109cfeeef34e68d51 to your computer and use it in GitHub Desktop.
Save zycon/f3dd8efb8b0238a109cfeeef34e68d51 to your computer and use it in GitHub Desktop.
get all zones by region filter
gcloud compute zones list --filter="region:europe-west1"
get all instances by instance groups by region
gcloud compute instance-groups list-instances GROUP_NAME --region REGION_NAME
@zycon
Copy link
Author

zycon commented Dec 9, 2019

instance describe
instanceId=instanceName
gcloud compute instances describe $instanceId --zone europe-west1-c --format='get(networkInterfaces.networkIP)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment