Find Legacy Argo Tunnels across all Zones

With the update to Named Cloudflare Tunnels & the subsequent deprecation of Legacy Argo Tunnels, is there any way to ensure we’ve found all legacy tunnels? Using the API, listing tunnels with tun_type!=cfd_tunnel results in no tunnels found, but I clearly have 2 in at least one Zone if I look via the dashboard. I’m interested in programmatically ensuring that we’ve discovered all legacy tunnels

Are you using an SDK? Could you try by directly invoking the HTTP API using curl. Check this to query all argo tunnels in your account. Here’s the example for the page

curl -X GET "https://api.cloudflare.com/client/v4/accounts/your-account-id/tunnels" \
     -H "X-Auth-Email: [email protected]" \
     -H "X-Auth-Key: api-token" \
     -H "Content-Type: application/json"

Notice that I am not passing the available parameters so that all tunnels are fetched.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.