I have an Azure Logic App that has failed actions (the number is too big so I won’t resubmit them manually).
I tried wtih the Azure documentation to list all of the operations:
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/triggers/{triggerName}/histories?api-version=2023-12-01
However the response seems to be limited to 30 when I do the curl request.
Even through the Azure Portal I don’t get a full list, but only get 40 responses at a time:
Example
Is there a way to list all of the failed actions with 1 request only?
Thanks!
2
Answers
You can add
&$top=250
to the URL to get 250 items in the response instead of 30. You can’t get more than 250 items in one go.https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/triggers/{triggerName}/histories?api-version=2023-12-01&$top=250
To get the next items, you have
nextLink
in your screenshot – keep sending requests to thenextLink
URLs until satisfied or until there’s nonextLink
.Update: You can also filter by
Status
=Failed
by adding the following to the URL:&$filter=status eq 'Failed'
Supported
Status
values:To fetch the list of trigger history at once, you need to use
$top
in request URL.$top=60
and got all the runs.