如何创建新的API连接并将它们绑定到已定义的逻辑应用程序? [英] How do I create new API Connections and Bind them to already defined Logic Apps?

查看:95
本文介绍了如何创建新的API连接并将它们绑定到已定义的逻辑应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设计了一个Logic App流程。它接受HTTP请求,连接到外部应用程序(例如,立即服务),并返回HTTP响应。当我浏览目录并使用Service Now时,我被要求进行身份验证,并且连接列在
API Connections下。



我能够通过az资源show命令查看JSON响应中的API连接:



资源显示--resource-group =< resourcegroup>  --resource型= QUOT; Microsoft.Web /连接" --name =" service-now"

我在properties / nonSecretParameterValues下看到Service Now实例的url和用户名。



但是,我如何(a)使用新的Service-Now凭证更新此现有连接或(b)创建新的API连接资源;并将其绑定到现有的Logic App。



关键问题也是;



我如何调用API连接的操作进行身份验证?

我可以使用az资源调用动作吗?我应该提供什么--action参数?



以下是我已经完成的以下参考文献:

https:// docs .microsoft.com / zh-cn / cli / azure / resource?view = azure-cli-latest#az-resource-invoke-action

https://docs.microsoft.com/en- us / azure / templates / microsoft.web / 2016-06-01 / connections


谢谢


Raj


解决方案

您可以通过直接更新代码视图或通过ARM模板部署来使用其他资源组中的连接,但设计人员尚不支持。


产品组计划支持使用Azure Logic App设计人员在附近的现有API连接(跨订阅)未来可能在下学期,但这个时间表
可能会有所变化基于优先级。 


已经有一个  User
Voice
  for this。提升它,以便产品团队可以优先考虑他们的计划。








I have designed a Logic App flow. It takes an HTTP Request, Connects to an external application (say, Service Now), and returns an HTTP response. When I browse the catalog and use Service Now, I'm asked to authenticate and the connection is listed under API Connections.

I'm able to see the API Connection in the JSON response through the az resource show command:

az resource show --resource-group=<resourcegroup>  --resource-type="Microsoft.Web/connections" --name="service-now"
I see the url and the user name of the Service Now instance under properties/nonSecretParameterValues.

However, how do I either (a) update this existing connection with new Service-Now credentials or (b) Create a new API Connection Resource; and bind it to the existing Logic App.

The key question is also;

How do I invoke an action for the API Connection to authenticate?
Can I use az resource invoke-action? What --action parameter should I provide?

Here are the following references that I had already gone through:
https://docs.microsoft.com/en-us/cli/azure/resource?view=azure-cli-latest#az-resource-invoke-action
https://docs.microsoft.com/en-us/azure/templates/microsoft.web/2016-06-01/connections

Thanks

Raj

解决方案

You can use a connection from a different resource group today by updating code view directly or deploying via ARM templates but it is not yet supported in the designer.

Product Group is planning to support to use existing API connection (across subscription) from Azure Logic App designer in the near future probably in next semester but this timeline is subject to change based on the priority. 

There is already a User Voice for this . Do upvote it so that product team can prioritize into their plans.



这篇关于如何创建新的API连接并将它们绑定到已定义的逻辑应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆