Skip to content

Instantly share code, notes, and snippets.

@qrkourier
Created June 20, 2025 12:00
Show Gist options
  • Save qrkourier/cc54b021f35f2ac1a36215241608e60b to your computer and use it in GitHub Desktop.
Save qrkourier/cc54b021f35f2ac1a36215241608e60b to your computer and use it in GitHub Desktop.
summarize ziti-edge-tunnel identities' statuses
ziti-edge-tunnel tunnel_status \
| jq -r '
.Data.Identities[]
|select(.Active == true and .Loaded == true)
| {
Name: .Name,
Identifier: .Identifier,
ztAPIs: ([.Config.ztAPI] + .Config.ztAPIs | unique)
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment