Join the Community
and take part in the story

List containers/accounts?


#1

As far as I see there is no way to query the system for a list of accounts or a list of containers within an account.

Is there a reason for it?


#2

Hi @ancoron

Thanks a lot for your feedbacks.

You can’t list the accounts created in a namespace using our CLI for the moment. You can retrieve the information by connecting to your redis instance, and using the command: keys account:*
I created a github issue to add this feature to our CLI: https://github.com/open-io/oio-sds/issues/817

The good news now, you can list the containers within an account using our CLI and the command openio container list.
Just add it to the documentation (was not there), more information following this link: http://docs.openio.io/cli-reference/openio_storage.html#list-containers

Thanks @ancoron :wink:


#3

Thank you for the quick answer. The CLI command works like a charm.

Is it already planned to also expose (listing containers would be most important for me) these with the Java client?


#4

Thanks @ancoron for the issue you created on github.

I put here the link, to be sure that everyone can follow it: https://github.com/open-io/oio-api-java/issues/33