Revision history of "GCP/Metadata service"

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

  • curprev 22:52, 30 January 2023Pio2pio talk contribs 692 bytes +184 →‎Programmatically query metadata
  • curprev 22:48, 30 January 2023Pio2pio talk contribs 508 bytes +508 Created page with "=[https://cloud.google.com/compute/docs/metadata/querying-metadata Programmatically query metadata]= <source lang=bash> # Query the boot image for the VM curl "http://metadata.google.internal/computeMetadata/v1/instance/image" -H "Metadata-Flavor: Google" # Query metadata directory listings. Any metadata entry ending in a trailing slash is a directory. curl "http://metadata.google.internal/computeMetadata/v1/instance/disks/0/" -H "Metadata-Flavor: Google" device-name in..."