I was looking for an endpoint to get all the connection information of a particular tunnel. The current endpoint to Get a Cloudflare Tunnel as mentioned in Cloudflare API v4 Documentation provides a
connections array but doesn’t provide some details like the agent architecture. I noticed that
cloudflared was still able to fetch the information. So, when I looked through the source code, I found that it was using an API call as
GET accounts/:account_identifier/cfd_tunnel/:tunnel_id/connections which was returning much more data for each tunnel.
As such, I have gone ahead and created a PR for the same in the Go SDK. It would be great if this endpoint was documented too. If this documentation is open source, I am willing to contribute the same.