Skip to content

Instantly share code, notes, and snippets.

@0v3rW4tch
Forked from jhaddix/cloud_metadata.txt
Created June 27, 2022 05:29
Show Gist options
  • Save 0v3rW4tch/5ecba1a1c3dac41ffaf7ef3df449b6c1 to your computer and use it in GitHub Desktop.
Save 0v3rW4tch/5ecba1a1c3dac41ffaf7ef3df449b6c1 to your computer and use it in GitHub Desktop.

Revisions

  1. @jhaddix jhaddix revised this gist Apr 25, 2018. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -30,6 +30,11 @@ http://metadata.google.internal/computeMetadata/v1/project/project-id
    # Google allows recursive pulls
    http://metadata.google.internal/computeMetadata/v1/instance/disks/?recursive=true

    ## Google
    # Beta does NOT require a header atm (thanks Mathias Karlsson @avlidienbrunn)

    http://metadata.google.internal/computeMetadata/v1beta1/

    ## Digital Ocean
    # https://developers.digitalocean.com/documentation/metadata/

  2. @jhaddix jhaddix revised this gist Apr 25, 2018. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -68,3 +68,8 @@ http://192.0.0.192/latest/
    http://192.0.0.192/latest/user-data/
    http://192.0.0.192/latest/meta-data/
    http://192.0.0.192/latest/attributes/

    ## Alibaba
    http://100.100.100.200/latest/meta-data/
    http://100.100.100.200/latest/meta-data/instance-id
    http://100.100.100.200/latest/meta-data/image-id
  3. @jhaddix jhaddix revised this gist Apr 25, 2018. 1 changed file with 10 additions and 2 deletions.
    12 changes: 10 additions & 2 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -55,8 +55,16 @@ http://169.254.169.254/metadata/v1/maintenance
    http://169.254.169.254/metadata/instance?api-version=2017-04-02
    http://169.254.169.254/metadata/instance/network/interface/0/ipv4/ipAddress/0/publicIpAddress?api-version=2017-04-02&format=text

    ## OpenStack/RackSpace
    ## OpenStack/RackSpace
    # (header required? unknown)
    http://169.254.169.254/openstack

    # HP Helion
    ## HP Helion
    # (header required? unknown)
    http://169.254.169.254/2009-04-04/meta-data/

    ## Oracle Cloud
    http://192.0.0.192/latest/
    http://192.0.0.192/latest/user-data/
    http://192.0.0.192/latest/meta-data/
    http://192.0.0.192/latest/attributes/
  4. @jhaddix jhaddix revised this gist Apr 25, 2018. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -54,3 +54,9 @@ http://169.254.169.254/metadata/v1/maintenance
    # https://docs.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service
    http://169.254.169.254/metadata/instance?api-version=2017-04-02
    http://169.254.169.254/metadata/instance/network/interface/0/ipv4/ipAddress/0/publicIpAddress?api-version=2017-04-02&format=text

    ## OpenStack/RackSpace
    http://169.254.169.254/openstack

    # HP Helion
    http://169.254.169.254/2009-04-04/meta-data/
  5. @BuffaloWill BuffaloWill revised this gist Nov 22, 2017. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -48,5 +48,9 @@ https://metadata.packet.net/userdata
    ## Azure
    # Limited, maybe more exist?
    # https://azure.microsoft.com/en-us/blog/what-just-happened-to-my-vm-in-vm-metadata-service/

    http://169.254.169.254/metadata/v1/maintenance

    ## Update Apr 2017, Azure has more support; requires the header "Metadata: true"
    # https://docs.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service
    http://169.254.169.254/metadata/instance?api-version=2017-04-02
    http://169.254.169.254/metadata/instance/network/interface/0/ipv4/ipAddress/0/publicIpAddress?api-version=2017-04-02&format=text
  6. @BuffaloWill BuffaloWill revised this gist Jun 27, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,7 @@

    http://169.254.169.254/latest/user-data
    http://169.254.169.254/latest/user-data/iam/security-credentials/[ROLE NAME]
    http://169.254.169.254/latest/meta-data/iam/security-credentials/[ROLE NAME]
    http://169.254.169.254/latest/meta-data/ami-id
    http://169.254.169.254/latest/meta-data/reservation-id
    http://169.254.169.254/latest/meta-data/hostname
  7. @BuffaloWill BuffaloWill revised this gist Mar 5, 2016. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -40,3 +40,12 @@ http://169.254.169.254/metadata/v1/hostname
    http://169.254.169.254/metadata/v1/region
    http://169.254.169.254/metadata/v1/interfaces/public/0/ipv6/address

    ## Packetcloud

    https://metadata.packet.net/userdata

    ## Azure
    # Limited, maybe more exist?
    # https://azure.microsoft.com/en-us/blog/what-just-happened-to-my-vm-in-vm-metadata-service/

    http://169.254.169.254/metadata/v1/maintenance
  8. @BuffaloWill BuffaloWill revised this gist Mar 5, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ## AWS - File Responses
    ## AWS
    # from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories

    http://169.254.169.254/latest/user-data
    @@ -9,7 +9,7 @@ http://169.254.169.254/latest/meta-data/hostname
    http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key
    http://169.254.169.254/latest/meta-data/public-keys/[ID]/openssh-key

    # AWS - Dir + Files Responses
    # AWS - Dirs

    http://169.254.169.254/
    http://169.254.169.254/latest/meta-data/
  9. @BuffaloWill BuffaloWill revised this gist Mar 5, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@ http://169.254.169.254/latest/meta-data/public-keys/

    ## Google Cloud
    # https://cloud.google.com/compute/docs/metadata
    # - Requires the header `Metadata-Flavor: Google` or `X-Google-Metadata-Request: True`
    # - Requires the header "Metadata-Flavor: Google" or "X-Google-Metadata-Request: True"

    http://169.254.169.254/computeMetadata/v1/
    http://metadata.google.internal/computeMetadata/v1/
  10. @BuffaloWill BuffaloWill revised this gist Mar 5, 2016. 1 changed file with 11 additions and 4 deletions.
    15 changes: 11 additions & 4 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # AWS - File Responses
    ## AWS - File Responses
    # from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories

    http://169.254.169.254/latest/user-data
    @@ -15,7 +15,7 @@ http://169.254.169.254/
    http://169.254.169.254/latest/meta-data/
    http://169.254.169.254/latest/meta-data/public-keys/

    # Google Cloud
    ## Google Cloud
    # https://cloud.google.com/compute/docs/metadata
    # - Requires the header `Metadata-Flavor: Google` or `X-Google-Metadata-Request: True`

    @@ -27,9 +27,16 @@ http://metadata.google.internal/computeMetadata/v1/instance/id
    http://metadata.google.internal/computeMetadata/v1/project/project-id

    # Google allows recursive pulls

    http://metadata.google.internal/computeMetadata/v1/instance/disks/?recursive=true

    ## Digital Ocean
    # https://developers.digitalocean.com/documentation/metadata/


    http://169.254.169.254/metadata/v1.json
    http://169.254.169.254/metadata/v1/
    http://169.254.169.254/metadata/v1/id
    http://169.254.169.254/metadata/v1/user-data
    http://169.254.169.254/metadata/v1/hostname
    http://169.254.169.254/metadata/v1/region
    http://169.254.169.254/metadata/v1/interfaces/public/0/ipv6/address

  11. @BuffaloWill BuffaloWill created this gist Feb 28, 2016.
    35 changes: 35 additions & 0 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,35 @@
    # AWS - File Responses
    # from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories

    http://169.254.169.254/latest/user-data
    http://169.254.169.254/latest/user-data/iam/security-credentials/[ROLE NAME]
    http://169.254.169.254/latest/meta-data/ami-id
    http://169.254.169.254/latest/meta-data/reservation-id
    http://169.254.169.254/latest/meta-data/hostname
    http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key
    http://169.254.169.254/latest/meta-data/public-keys/[ID]/openssh-key

    # AWS - Dir + Files Responses

    http://169.254.169.254/
    http://169.254.169.254/latest/meta-data/
    http://169.254.169.254/latest/meta-data/public-keys/

    # Google Cloud
    # https://cloud.google.com/compute/docs/metadata
    # - Requires the header `Metadata-Flavor: Google` or `X-Google-Metadata-Request: True`

    http://169.254.169.254/computeMetadata/v1/
    http://metadata.google.internal/computeMetadata/v1/
    http://metadata/computeMetadata/v1/
    http://metadata.google.internal/computeMetadata/v1/instance/hostname
    http://metadata.google.internal/computeMetadata/v1/instance/id
    http://metadata.google.internal/computeMetadata/v1/project/project-id

    # Google allows recursive pulls

    http://metadata.google.internal/computeMetadata/v1/instance/disks/?recursive=true