I have already tried that and same error, most of people saying use "" "" "" will give you full access. On Thu, May 7, 2020 at 8:28 PM Thomas Goirand <zigo@debian.org> wrote:
On 5/8/20 12:18 AM, Satish Patel wrote:
Folks,
I am just playing with API and getting strange result, may be i am doing something wrong please correct me.
[root@aio1-rabbit-mq-container-5233d3c3 root]# rabbitmqctl list_vhosts Listing vhosts ... name /neutron /designate /keystone /aodh / /nova /glance /ceilometer
and i have configured monitoring user to query data from API
Following works and i am getting data #curl -s http://172.29.239.29:15672/api/vhosts --user monitoring:de4a28d10da980077cea | jq
now try to query specific vhosts like nova getting error
# curl -s http://172.29.239.29:15672/api/vhosts/nova --user monitoring:de4a28d10da980077cea | jq { "error": "not_authorised", "reason": "Not administrator user" }
Even i set full permission, getting same error no_authorised, what i am missing?
# rabbitmqctl set_permissions monitoring -p /nova "" "" ""
As per: https://www.rabbitmq.com/access-control.html
The syntax is: rabbitmqctl set_permissions 'username' -p '/nova' '.*' '.*' '.*'
Cheers,
Thomas Goirand (zigo)