I’ve just realized that API call to List Cloudflare Tunnels returns deleted tunnels as well, with
"status" : "inactive" set.
In my process I’m planning to delete tunnels quite often. Being unable to find a tunnel by name (only by id), makes me have to pull all of them and filter every time - including inactive ones.
Is there a way to work around this?
Please take a look at the Cloudflare API docs for the List Tunnels API: Cloudflare API Documentation.
You can exclude deleted Tunnels with the
is_deleted=false query parameter.
You can use the
tunnel_name query parameter to filter Tunnels by name.
WOW! Thanks. I would certainly appreciate more examples, but I’ll totally study the parameters more thoroughly in the future.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.