Discovering Cloud Public IPs for cloud hosts
Overview
Public IPs are the IP addresses assigned to cloud resources and used to communicate with external systems.
Supported cloud providers
Retrieving
To retrieve the Public IPs for cloud hosts, discovery platform scripts (for both Linux and Windows) are processing Instance Metadata.
- For Amazon Web Services http://169.254.169.254/latest/meta-data/network/interfaces/macs/
- For Google Cloud Platform http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/
- For Microsoft Azure http://169.254.169.254/metadata/loadbalancer?api-version=2021-12-13 or http://169.254.169.254/metadata/instance/network/interface?api-version=2021-12-13
- For Alibaba Cloud Platform http://100.100.100.200/latest/meta-data/eipv4
Examples
AWS public IPv4
Azure public IPv6
GCP public IPv4
Information sources
The following official product documentation sources were used:
Amazon Web Services
Microsoft Azure
- https://learn.microsoft.com/en-us/azure/load-balancer/instance-metadata-service-load-balancer
- https://learn.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service?tabs=windows
Google Cloud Platform
Alibaba Cloud Platform
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Log in or register to comment.