首页 文章

Azure服务总线获取所有队列消息

提问于
浏览
0

我正在使用azure服务总线队列 . 但是我无法使用“获取所有队列消息(peek Lock)”从队列中获取所有消息:Microsoft内置了api .

有没有办法获取所有队列消息?

{“$ connections”:{“value”:{“servicebus_1”:{“connectionId”:“/ subscriptions/c776fec3-6aec-4722-b099-b054c267b240/resourceGroups/Plugin-Resource/providers/Microsoft.Web/connections/ servicebus-3“,”connectionName“:”servicebus-3“,”id“:” - b054c267b240 / providers / Microsoft.Web / locations / northcentralus / managedApis / servicebus“}}},”definition“:{”$ schema“ :“https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#”,“actions”:{“Get_messages_from_a_queue_(peek-lock)”:{“输入“:{”host“:{”api“:{”runtimeUrl“:”https://logic-apis-northcentralus.azure-apim.net/apim/servicebus“},”connection“:{”name“: “@parameters('$ connections')['servicebus_1'] ['connectionId']”}},“method”:“get”,“path”:“/ @ {encodeURIComponent('email-listener')} / messages / batch / peek“,”queries“:{”maxMessageCount“:20,”queueType“:”Main“}},”runAfter“:{},”type“:”ApiConnection“}},”contentVersion“:”1.0 .0.0“,”输出“:{},”参数“:{”$ connecti ons“:{”defaultValue“:{},”type“:”Object“}},”触发器“:{”Recurrence“:{”recurrence“:{”frequency“:”Day“,”interval“:3} ,“类型”:“重复”}}}}

谢谢

1 回答

  • 0

    默认情况下,托管API会返回20条消息 .
    enter image description here

    如果队列中有超过20条消息,则需要手动增加最大消息数 .

    enter image description here

相关问题