简体   繁体   English

我正在尝试通过 azure 数据工厂将数据从 REST API 下载到 azure 数据湖。 如何在 azure 数据工厂中传递 API 的查询参数?

[英]I am trying to download data from REST API to azure data lake via azure data factory. How can I pass query parameters for API in azure data factory?

I am doing this using 'Copy Activity'.我正在使用“复制活动”来执行此操作。 Is there any other activity that can better perform this operation?有没有其他活动可以更好地执行此操作? Example REST API URL: https://xzy.com/servicename?name=tom&age=50&city=boston& ...... I am putting ' https://xzy.com/servicename/ ' as the base URL for the linked service.示例 REST API URL: https://xzy.com/servicename?name=tom&age=50&city=boston& ......我将“ https://xzy.com/servicename/ ”作为链接的基本 URL服务。 How to pass the query parameters 'name=tom' and 'age=50' and 'city=boston' to the base url in the azure data factory to get the response?如何将查询参数 'name=tom' 和 'age=50' 和 'city=boston' 传递给 azure 数据工厂中的基本 url 以获得响应? Will the parameters be passed at linked service, dataset or pipeline level?参数会在链接服务、数据集或管道级别传递吗?

It seems that your request method is Get .您的请求方法似乎是Get You could only set the query parameters behind base url directly.您只能直接在基本 url 后面设置查询参数。

For example,i test rest api from this sample website :例如,我从这个示例网站测试了 rest api:

https://jsonplaceholder.typicode.com/comments?postId=1

Test result:测试结果:

在此处输入图片说明

If your request method is Post ,i suppose you have to define the parameters in the Body part.如果您的请求方法是Post ,我想您必须在Body部分定义参数。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Azure 数据工厂中使用这个 Rest API - How can I consume this Rest API in Azure Data Factory 如何在 Azure 数据工厂中使用此 API - How can I use this API in Azure Data Factory 使用 Azure 数据工厂将文件从 restAPI 下载到数据湖中 - Download a file from restAPI using Azure Data Factory into Data lake 如何使用Data Factory v2将数据从REST API终结点复制到Azure DB? - How do I copy data from REST API endpoint into Azure DB using Data Factory v2? 如何使用 Azure 数据工厂动态添加 HTTP 端点以将数据加载到 azure 数据湖中,并且 REST api 已通过 cookie 身份验证 - How to Dynamically adding HTTP endpoint to load data into azure data lake by using Azure Data Factory and the REST api is cookie autheticated 使用 Azure 数据工厂从 REST API 获取数据 - Using Azure Data Factory to get data from a REST API 使用 Azure 数据工厂从 REST API 引入传入数据 - Using Azure Data Factory to ingest incoming data from a REST API 使用 Azure 数据工厂从 REST API 读取 JSON - Read JSON from rest API as is with Azure Data Factory 如何使用 Azure 数据工厂管道调用 REST API? - How to call a REST API using Azure Data Factory Pipelines? 如何使用 REST API 作为 Azure 数据工厂中查找活动的来源 - How to use REST API as source for Lookup activity in Azure Data Factory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM