Last active
June 10, 2017 01:39
-
-
Save yanana/3073a50b54b052d5d5b5 to your computer and use it in GitHub Desktop.
Create and query project-wide metadata on Google Compute Engine.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Set project-wide metadata | |
| gcloud compute project-info add-metadata --metadata foo=bar,baz=bat | |
| # Query set metadata based on a key | |
| curl 'http://metadata/computeMetadata/v1/project/attributes/foo' -H 'Metadata-Flavor: Google' # => bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment