[英]How to do a Blob storage to API data transfer in Azure Data Factory?
I'm doing a POC that taking data from a csv file which is inside the Blob storage and do some mappings or transformations and send it to a Rest API (POST).我正在做一个 POC,它从 Blob 存储内部的 csv 文件中获取数据,并进行一些映射或转换并将其发送到 Rest API (POST)。 I used a Lookup and web activities for this.为此,我使用了 Lookup 和 web 活动。 But we can't do any transformation with these two.但是我们不能对这两个进行任何转换。 I thought of doing transformation with a DataFlow Activity and save it to Blob again and used Lookup and Web activities to do the rest.我想用 DataFlow Activity 进行转换并将其再次保存到 Blob 并使用 Lookup 和 Web 活动来执行 rest。 I have two questions.我有两个问题。
Thanks谢谢
Is there any other way to do this Blob to API copy?有没有其他方法可以将此 Blob 复制到 API 副本?
No, Data Factory doesn't support Rest API as Sink dataset.不,数据工厂不支持将 Rest API 作为接收器数据集。 We only could get data from REST API and can not transfer data to it.我们只能从 REST API 中获取数据,无法向其传输数据。 Ref: Azure Data Factory connector overview参考: Azure 数据工厂连接器概述
Does Web activity has 1 min of execution time? Web 活动是否有 1 分钟的执行时间?
Yes, REST endpoints that the web activity invokes must return a response of type JSON.是的,web 活动调用的 REST 端点必须返回 JSON 类型的响应。 The activity will timeout at 1 minute with an error if it does not receive a response from the endpoint.如果没有收到来自端点的响应,该活动将在 1 分钟后超时并出现错误。
Ref: Web activity in Azure Data Factory .参考: Azure 数据工厂中的 Web 活动。
Hope this helps.希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.