[英]Logic App Standard (single tenant) - How to create additional/new workflow in existing logic app using REST API
我拥有和现有的 Logic App Standard 以及一些工作流。 目标是使用 REST API 创建其他工作流。
在标准逻辑应用中创建新工作流。 您可以根据您的要求将类型更改为无状态或有状态,并根据您的要求更新请求正文中的触发器/操作/输出。
POST https://management.azure.com/subscriptions/{订阅ID}/resourceGroups/{资源组名称}/providers/Microsoft.Web/sites/{逻辑应用程序名称}/deployWorkflow18-10-10 01 授权:承载
请求正文: {"files":{"<>/workflow.json":{"definition":{"$schema": https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016 -06-01/workflowdefinition.json#,"actions":{},"contentVersion":"1.0.0.0","outputs":{},"triggers":{"manual":{"inputs":{} ,"kind":"Http","type":"Request"}}},"kind":"Stateful"}}}
更新标准逻辑应用程序中的现有工作流
POST https://management.azure.com/subscriptions/{订阅ID}/resourceGroups/{资源组名称}/providers/Microsoft.Web/sites/{逻辑应用程序名称}/hostruntime/runtime/webhooks/workflow/api/ management/workflows/{yourworkflowname}/validate?api-version=2018-11-01 授权:承载
请求正文: {"properties":{"definition":{"$schema": https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition. "actions":{},"contentVersion":"1.0.0.0","outputs":{},"triggers":{"manual":{"inputs":{},"kind":"Http"," type":"Request"}}},"kind":"Stateful"}}
The standard logic app is built on top of the azure function app runtime, and it uses the same REST API as azure function. Make sure to add Content-Type as application/json in the header To get familiar with function REST API you can refer to this document . 要熟悉 Azure 管理 API 和生成令牌,请参阅此文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.