Google Certified Associate Cloud Engineer 2020

Sign Up Free or Log In to participate!

meta data command

This command worked for me instead of listed in course

curl "http://metadata.google.internal/computeMetadata/v1/" -H "Metadata-Flavor: Google"

1 Answers

Hey Mahesh, you’ve brought up a good point: the curl options (like -H) can be placed anywhere in the command, they are not positional arguments like the gcloud command-line tool. 

In the Google Cloud Shell we can also discover all of the available options using the help flag curl --help, and the man pages are available too for even more usage instructions: man curl.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?