I have got an mail saying Legacy GAE and GCF Metadata Server endpoints will be turned down on April 30, 2020. I need to update my metadata server endpoints to v1. But how do I know the current versions of my metadata server endpoints. I have checked the google cloud documentation of migrating to v1 metadata server. It has given two commands but I really don't know what it meant and where it has to be run.
I had an eye on the documentation and tried these two commands
curl -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/legacy-endpoint-access/0.1
curl -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/legacy-endpoint-access/v1beta1
but ended up with an error saying
curl: (6) Could not resolve host: metadata.google.internal
When I put my local host I am getting the output as
<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.4.6 (Ubuntu)</center>
</body>
</html>
Don't know how to proceed further.
Please help me. Thank you in advance!