rabbitmq api query

Satish Patel satish.txt at gmail.com
Thu May 7 22:18:33 UTC 2020


Folks,

I am just playing with API and getting strange result, may be i am
doing something wrong please correct me.

[root at 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 "" "" ""



More information about the openstack-discuss mailing list