Skip to content

Instantly share code, notes, and snippets.

@tylrd
Last active February 24, 2018 04:08
Show Gist options
  • Save tylrd/be60a6000fc2433b46af738773421c02 to your computer and use it in GitHub Desktop.
Save tylrd/be60a6000fc2433b46af738773421c02 to your computer and use it in GitHub Desktop.
Google Cloud Project commands
curl -s -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/?recursive=true | jq -r '.networkInterfaces[0].accessConfigs[0].externalIp'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment