Prompt
How can I find every API we expose across cloud and on-prem?
Latest observation
Oct 29, 2026
OpenAI APIWeb search: off
To find every API you expose across cloud and on-prem, the most reliable approach is to combine inventory, discovery, traffic analysis, and config/code scanning. Don’t rely on just one source.
1) Define what counts as an API
Include:
- Public REST/GraphQL/gRPC endpoints
- Internal service APIs
- Partner/external APIs
- Management/admin APIs
- API gateways, ingress routes, service mesh routes
- On-prem endpoints behind VPN/private network
- SaaS-hosted APIs you own
2) Start with known control points
Check the systems that already know about exposed traffic:
Cloud
- API gateways: AWS API Gateway, Azure API Management, GCP API Gateway/Endpoints
- Load balancers / ingress: ALB/NLB, Azure Application Gateway, GCP LB, Kubernetes Ingress
- Service mesh: Istio, Linkerd, Consul
- CDN/WAF: Cloudflare, Akamai, AWS CloudFront + WAF
- DNS and certificates: Route 53, Azure DNS, Cloud DNS, ACM/Key Vault certs
- Container platforms: EKS/AKS/GKE, OpenShift routes, ingress controllers
On-prem
- Reverse proxies: NGINX, Apache, F5, HAProxy, Traefik
- API gateways: Apigee, Kong, MuleSoft, Tyk, WSO2
- Network devices / firewalls / ADCs
- Kubernetes/OpenShift ingress and routes
- Internal DNS and service discovery
- VPN-exposed services
3) Build an exposure inventory
Create a table of:
- Hostname
- Path
- Method(s)
- Environment
- Owner/team
- Auth method
- Data sensitivity
- External/internal
- Where discovered
- Last seen
This becomes the source of truth.
4) Enumerate from infrastructure-as-code and configs
Scan:
- Terraform, CloudFormation, ARM/Bicep, Helm charts, Kubernetes manifests
- API gateway configs
- Ingress configs
- Reverse proxy configs
- Firewall rules and security groups
- DNS records and cert SANs
Search for:
paths,routes,listeners,ingress,host,basePath- Open ports on app hosts
- Public IP associations
- Wildcard certs/domains
5) Scan code repositories
Look for API definitions and route handlers:
- OpenAPI/Swagger files
- GraphQL schemas
- gRPC proto files
- Express/FastAPI/Spring/Django/.NET route definitions
- “router”, “controller”, “endpoint”, “@Route”,
app.get, etc.
Also search for:
- Environment-specific base URLs
- Feature flags exposing endpoints
- Admin/debug routes
- Legacy/deprecated endpoints still deployed
6) Mine traffic and logs
This is often the best way to catch hidden APIs.
Sources:
- API gateway logs
- Reverse proxy access logs
- WAF logs
- Load balancer access logs
- Service mesh telemetry
- APM traces
- VPC flow logs / firewall logs
- SIEM logs
- Packet captures if needed
Look for:
- Unique host/path combinations
- Requests from outside trusted networks
- 404s that might indicate scanned endpoints
- Rare or undocumented paths
- Long-tail endpoints used by clients
7) Use external discovery for internet-facing assets
For public-facing exposure:
- Subdomain enumeration from your org’s domains
- Certificate transparency logs
- DNS zone inventory
- Search engine indexing
- Public asset discovery platforms / ASM tools
Then validate:
- Which hosts resolve
- Which ports are open
- Which paths respond with API-like behavior
8) Discover internal exposure too
Internal APIs often get missed. Check:
- Internal DNS zones
- Kubernetes service maps
- Service catalog / CMDB
- Service mesh registries
- Internal load balancers
- Private endpoints / VPC peering / ExpressRoute / Direct Connect
- On-prem network scans in approved ranges
9) Correlate and de-duplicate
Normalize by:
- Service name
- Hostname
- Path prefix
- Environment
- Deployment cluster/site
Many APIs appear multiple times through:
- gateway + ingress + service
- same API in multiple environments
- alias domains
- versioned paths
10) Validate with ownership
For each candidate API:
- Ask the owning team to confirm
- Confirm whether it’s production, staging, or dead
- Verify auth and data classification
- Mark decommission candidates
11) Automate it
Best practice is to build a recurring pipeline:
- Pull from cloud APIs, gateway configs, ingress configs, DNS, certs
- Parse IaC and repos
- Ingest logs daily
- Reconcile into a catalog
- Alert on new/changed exposed routes
Tools that help:
- Cloud asset inventory tools
- API discovery/catalog tools
- ASM tools
- SIEM/APM observability
- Kubernetes inventory tools
- CMDB/service catalog
12) A practical “minimum viable” plan
If you want a fast start:
- Export all gateway/ingress/reverse proxy configs
- Pull DNS + cert inventories
- Scan IaC and repos for route definitions
- Gather access logs from gateways/load balancers for 30–90 days
- Merge results into one spreadsheet or database
- Review with app owners and security
Useful output format
A simple schema:
service_nameapi_namehostnamebase_pathprotocolmethodsenvcloud_or_on_premownerauthinternet_exposeddiscovered_bylast_seen
If you want, I can also give you:
- a step-by-step discovery workflow,
- a sample SQL/schema for an API inventory, or
- a tooling checklist for AWS/Azure/GCP + on-prem.