'unable to set rabbitmq lazy queue

I have referred the link https://www.rabbitmq.com/lazy-queues.html here and set the rabbitmq queue to lazy queue using the following command

rabbitmqctl set_policy Lazy "^lazy-queue$" '{"queue-mode":"lazy"}' --apply-to queues

However, when checking it using the command curl -u guest:guest 'localhost:15672/api/queues' it still shows the default queue as below


"mode":"default" . 

How do I set the queue to lazy queue in rabbitmq. Could someone please help



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source