Add a flag for commands to produce json output #621
Labels
No labels
action
check-aws
action
discussion-needed
action
for-external-contributors
action
for-newcomers
action
more-info-needed
action
need-funding
action
triage-required
kind
correctness
kind
ideas
kind
improvement
kind
performance
kind
testing
kind
usability
kind
wrong-behavior
prio
critical
prio
low
scope
admin-api
scope
background-healing
scope
build
scope
documentation
scope
k8s
scope
layout
scope
metadata
scope
ops
scope
rpc
scope
s3-api
scope
security
scope
telemetry
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#621
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For some commands, it would be nice to have the option to get the output as json. The commands I would find the most helpful are the ones displaying detailed information about the buckets, keys and layout, like
bucket list
,bucket info
key list
,key info
layout show
but others, like
status
,stats
could also be nice.(For some context, I am trying to write a script that ensures the layout, keys and buckets in garage match the ones I want and json output would be a nice way to retrieve the current state.)
In the meantime, you can use the admin api with curl
Thanks, that suggestion works very well for my use-case