-
Notifications
You must be signed in to change notification settings - Fork 167
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
output-request-json doesn't #2569
Comments
doesn't state it explicitly, but it'll work just add |
Noted and confirmed. How shall we unconfuse future users on this point? My naive expectation was that |
You don't need the
Also noticed that if you do a DELETE, the output actually shows
I would expect the |
It appears that the necessity of ❯ while read
do
if unbuffer ~/go/bin/ziti edge list $REPLY --output-request-json |& grep -q RESTY
then
echo -e "INFO: $REPLY succeeded with --output-request-json"
elif unbuffer ~/go/bin/ziti edge list $REPLY --output-request-json --verbose |& grep -q RESTY
then
echo -e "WARN: $REPLY succeeded with --verbose --output-request-json" >&2
else
echo -e "ERROR: $REPLY failed" >&2
fi
done< <(awk -F'"' '/\.AddCommand\(new(Sub)?ListCmdForEntityType/ {print $2}' ./ziti/cmd/edge/list.go | sort -u)
WARN: api-sessions succeeded with --verbose --output-request-json
WARN: authenticators succeeded with --verbose --output-request-json
ERROR: auth-policies failed
ERROR: cas failed
WARN: configs succeeded with --verbose --output-request-json
ERROR: config-type failed
WARN: config-types succeeded with --verbose --output-request-json
WARN: edge-router-policies succeeded with --verbose --output-request-json
WARN: edge-router-role-attributes succeeded with --verbose --output-request-json
WARN: edge-routers succeeded with --verbose --output-request-json
WARN: enrollments succeeded with --verbose --output-request-json
ERROR: ext-jwt-signers failed
WARN: identities succeeded with --verbose --output-request-json
WARN: identity-role-attributes succeeded with --verbose --output-request-json
WARN: posture-check-role-attributes succeeded with --verbose --output-request-json
WARN: posture-checks succeeded with --verbose --output-request-json
WARN: posture-check-types succeeded with --verbose --output-request-json
WARN: service-edge-router-policies succeeded with --verbose --output-request-json
WARN: service-policies succeeded with --verbose --output-request-json
WARN: service-role-attributes succeeded with --verbose --output-request-json
WARN: services succeeded with --verbose --output-request-json
WARN: sessions succeeded with --verbose --output-request-json
WARN: summary succeeded with --verbose --output-request-json
WARN: terminators succeeded with --verbose --output-request-json
WARN: transit-routers succeeded with --verbose --output-request-json |
My expectation as well was that it would output the request body. Found this gh issue to my surprise being very new. I guess best bet is to actually output it whether |
$ ziti edge list edge-routers --output-request-json 'tags.foo = "bar"' ╭────┬──────┬────────┬───────────────┬──────┬────────────╮ │ ID │ NAME │ ONLINE │ ALLOW TRANSIT │ COST │ ATTRIBUTES │ ├────┼──────┼────────┼───────────────┼──────┼────────────┤ ╰────┴──────┴────────┴───────────────┴──────┴────────────╯ results: none
The text was updated successfully, but these errors were encountered: