rabbitmq api query

Mathieu Gagné mgagne at calavera.ca
Fri May 8 02:19:12 UTC 2020


I think you need to encode your / as %2F

So the URL becomes:
http://172.29.239.29:15672/api/vhosts/%2Fnova

--
Mathieu

On Thu, May 7, 2020 at 9:39 PM Satish Patel <satish.txt at gmail.com> wrote:
>
> I did following
>
> # rabbitmqctl add_user test test
> # rabbitmqctl set_user_tags test administrator
> # rabbitmqctl set_permissions -p / test ".*" ".*" ".*"
>
> Now i am getting following error,  look like something is missing
> here,  my vhost name is /nova so do i need to specify "/"  in api
> call?
>
> # curl -s http://172.29.239.29:15672/api/vhosts/nova --user test:test | jq
> {
>   "error": "Object Not Found",
>   "reason": "Not Found"
> }
>
> On Thu, May 7, 2020 at 8:52 PM Mathieu Gagné <mgagne at calavera.ca> wrote:
> >
> > Hi,
> >
> > On Thu, May 7, 2020 at 6:18 PM Satish Patel <satish.txt at gmail.com> wrote:
> > >
> > > # 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 "" "" ""
> > >
> >
> > Make sure your user as one of the following tag to be able to access
> > the management interface: management, policymaker, monitoring or
> > administrator tag
> >
> > https://www.rabbitmq.com/management.html#permissions
> >
> > --
> > Mathieu



More information about the openstack-discuss mailing list