Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ziti edge list ... show paginated output but no suggestions on how to go to next page #1479

Open
dmuensterer opened this issue Oct 29, 2023 · 1 comment

Comments

@dmuensterer
Copy link

When executing any ziti edge list command, e.g. ziti edge list terminators, the output is paginated but there is no suggestion as to how to get the next page:
results: 1-10 of 32

Executing --help doesn't give any suggestions either:

ziti edge list terminators --help
lists terminators managed by the Ziti Edge Controller

Usage:
  ziti edge list terminators <filter>? [flags]

Flags:
  -i, --cli-identity string   Specify the saved identity you want the CLI to use when connect to the controller with
      --csv                   Output CSV instead of a formatted table
  -h, --help                  help for terminators
  -j, --output-json           Output the full JSON response from the Ziti Edge Controller
      --output-request-json   Output the full JSON request to the Ziti Edge Controller
      --timeout int           Timeout for REST operations (specified in seconds) (default 5)
      --verbose               Enable verbose logging

@dovholuknf
Copy link
Member

hi @dmuensterer. Yes we need to show that better for sure! I'll add the good first issue to this one. in the meantime, I assume you discovered:

ziti edge list terminators "skip 3 limit none"

? If not, that's how you do it :)

Also if you add -j you'll get back something like:

    "meta": {
        "filterableFields": [
            "id",
            "isSystem",
            "address",
            "hostId",
            "createdAt",
            "updatedAt",
            "tags",
            "binding",
            "instanceId",
            "service",
            "router",
            "service.name",
            "router.name"
        ],
        "pagination": {
            "limit": 9223372036854775807,
            "offset": 3,
            "totalCount": 17
        }

which you can then use to filter like:

ziti edge list terminators 'router="ZOuXc1DlSJ" skip 3 limit none'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants