I have several Google Compute Engine instances, and have set instance metadata on each, under the assumption these are available on the instance itself as an environment variable, but they don't show up. I then read here that I need to query the metadata server for this data, but that just returns a 403 unauthorized when run from the instance itself. Is there a way to access metadata as environment variables?
相关问题
- I want to read exif info in image in android. I ca
- Is it possible to use the TestCafe .meta object to
- compute engine use gsutil to download tgz file has
- Flask app cannot open server to Google Cloud Compu
- VM Instance is not accessible The project you requ
相关文章
- How do I create a persistent volume claim with Rea
- How do I append metadata to an image in Matlab?
- What file sytems support Java UserDefinedFileAttri
- Restlet can't get the data with Android
- add GPS metadata dictionary to image taken with AV
- Creating a jpeg file with metadata
- Is there way to get metadata of the image file in
- JavaScript/JSON Interface Description Language
It may be worth studying Metadata querying a bit more, but my guess is that you are attempting to get custom metadata, which is resulting in it not being found. Make sure you are using the
attributes
directory to access any custom metadata.For example, this will get the built-in
tags
metadata:while this will get your custom metadata for attribute
foo
: