Links
- Using Google Compute Engine with open source software
- Using custom images
- Storing and Retrieving Metadata
- Querying metadata
- Get project-id:
curl -H 'X-Google-Metadata-Request: True' http://metadata/computeMetadata/v1/project/project-id
- Custom KV
foo
:curl -H 'X-Google-Metadata-Request: True' http://metadata/computeMetadata/v1/instance/attributes/foo
- Primary Disk Name:
curl -H 'X-Google-Metadata-Request: True' http://metadata/computeMetadata/v1/instance/disks/0/device-name
- Recursive:
curl -H 'X-Google-Metadata-Request: True' 'http://metadata/computeMetadata/v1/instance/?recursive=true' | python -c 'import sys, json, pprint; pprint.pprint(json.load(sys.stdin))'
- Get project-id:
- Querying metadata
- gcutil: addinstance
- Networking
- Preparing an Instance to Use Service Accounts
- Start Up Scripts
- Security recommendations