This command gives me the instance name:
curl -X GET http://metadata.google.internal/computeMetadata/v1/instance/name -H \'Metadata-Flavor: Google\'