1

How can I ls "/config" directory to get "/a /b /c" in etcd v3?

I don't want to "get /config --prefix" and compare all keys for 10000 times.

/config
.../a/
.../b/
....../xxx # about 100000 keys
.../c/

1 Answer 1

1

ls seems to have been deliberately omitted in v3, but in your case something like this can work:

ETCDCTL_API=3 etcdctl get /config --prefix

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.