1
votes

I have a need to display in a web page the logic apps run history, statuses of each runs and action, inputs/outputs of each action. I am using LogicManagementClient library to query workflows, runs and actions. But I don't see any option to query the input/output of each action through this client that we see in Azure by clicking "Show Raw Inputs/Outputs". The documentation for REST API does not have it either.

However I happened to notice in network calls of Azure portal that they use a different REST API end point to query the ActionInputs and ActionOutputs. The URL is of the format

https://prod-26.eastus.logic.azure.com/workflows/{workflowId}/runs/{runId}/actions/{actionName}/contents/ActionInputs?api-version=2016-06-01&se=<snipped>&sv=1.0&sig=<snipped>

Is there any way I can use this API or is it internal to Azure Portal that we don't get access to?

Update: I am adding a screenshot showing the response body of the action I am interested in and this is fetched using the ~/ActionInputs endpoint by Azure Portal shown above.

enter image description here

1

1 Answers

1
votes

Is there any way I can use this API or is it internal to Azure Portal that we don't get access to?

Please have a try to use the Workflow Run Actions API- List to get the actions detail info.

https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions?api-version=2016-06-01&$top&$filter={$top&$filter}

enter image description here

Then we could get the URL format as you mentioned directly.

https:/xxxx.eastus.logic.azure.com/workflows/{workflowId}/runs/{runId}/actions/{actionName}/contents/ActionInputs?api-version=2016-06-01&se=<snipped>&sv=1.0&sig=<snipped>

It is the url of inputsLink/outputsLink for action.

enter image description here

enter image description here