This command worked for me instead of listed in course
curl "http://metadata.google.internal/computeMetadata/v1/" -H "Metadata-Flavor: Google"
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: