Signed-off-by: kchheda3 <kchheda3@bloomberg.net>
.. prompt:: bash #
- radosgw-admin topic list [--tenant={tenant}]
+ radosgw-admin topic list [--tenant={tenant}] [--uid={user}]
Fetch the configuration of a specific topic by running the following command:
cerr << "ERROR: could not get topics: " << cpp_strerror(-ret) << std::endl;
return -ret;
}
+ if (!rgw::sal::User::empty(user)) {
+ for (auto it = result.topics.cbegin(); it != result.topics.cend();) {
+ const auto& topic = it->second;
+ if (user->get_id() != topic.user) {
+ result.topics.erase(it++);
+ } else {
+ ++it;
+ }
+ }
+ }
encode_json("result", result, formatter.get());
formatter->flush(cout);
}