获取逻辑应用程序操作的 REST 端点 Inputs/Outputs
REST end point to get Logic App Action Inputs/Outputs
我需要在网页中显示逻辑应用程序 运行 历史、每个 运行 和操作的状态、每个操作的 inputs/outputs。我正在使用 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 也没有。
但是我碰巧在 Azure 门户的网络调用中注意到它们使用不同的 REST API 端点来查询 ActionInputs 和 ActionOutputs。 URL 的格式为
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>
有什么方法可以使用这个 API 或者它是我们无法访问的 Azure 门户内部的吗?
更新:
我正在添加一个屏幕截图,显示我感兴趣的操作的响应主体,这是通过上面显示的 Azure 门户使用 ~/ActionInputs 端点获取的。
Is there any way I can use this API or is it internal to Azure Portal that we don't get access to?
请尝试使用工作流 Run Actions API- List 获取操作详细信息。
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}
然后我们就可以得到你直接提到的URL格式。
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>
动作是inputsLink/outputsLink的url。
我需要在网页中显示逻辑应用程序 运行 历史、每个 运行 和操作的状态、每个操作的 inputs/outputs。我正在使用 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 也没有。
但是我碰巧在 Azure 门户的网络调用中注意到它们使用不同的 REST API 端点来查询 ActionInputs 和 ActionOutputs。 URL 的格式为
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>
有什么方法可以使用这个 API 或者它是我们无法访问的 Azure 门户内部的吗?
更新: 我正在添加一个屏幕截图,显示我感兴趣的操作的响应主体,这是通过上面显示的 Azure 门户使用 ~/ActionInputs 端点获取的。
Is there any way I can use this API or is it internal to Azure Portal that we don't get access to?
请尝试使用工作流 Run Actions API- List 获取操作详细信息。
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}
然后我们就可以得到你直接提到的URL格式。
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>
动作是inputsLink/outputsLink的url。