Skip to content

Instantly share code, notes, and snippets.

@b0noI
Last active May 27, 2020 02:47
Show Gist options
  • Save b0noI/ac21f0cc533deecc62f7e7dfceb8784f to your computer and use it in GitHub Desktop.
Save b0noI/ac21f0cc533deecc62f7e7dfceb8784f to your computer and use it in GitHub Desktop.
export INSTANCE_NAME="my-instance"
gcloud compute instances describe "${INSTANCE_NAME}" --format json | jq '.metadata.items[] | select(.key=="proxy-url") | .value'
@IlyaKochnev
Copy link

it's not "datalab" anymore
this one works for me
gcloud compute instances describe $INSTANCE_NAME --format json | jq '.metadata.items[] | select(.key=="proxy-url") | .value'

@b0noI
Copy link
Author

b0noI commented May 27, 2020

thank you!

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