Using Azure Data Factory to get data from a REST A

2020-02-09 16:16发布

Is it possible to use Azure Data Factory to get data from a REST API and insert it to a Azure database table?

6条回答
家丑人穷心不美
2楼-- · 2020-02-09 16:51

This can be achieved with Data Factory. Data Factory is useful if you want to run batches on a schedule and have a single place for monitoring and management. There is sample code in our GitHub repo for an http loader to blob here https://github.com/Azure/Azure-DataFactory. Then the blob can be consumed for other processing, like putting it into your table. To do this, you would create a pipeline that contains your custom loader, then an activity with blob as the input dataset and table as the output dataset.

查看更多
够拽才男人
3楼-- · 2020-02-09 16:58

There is now support for REST as a data source in Azure Data Factory, including pagination

查看更多
放荡不羁爱自由
4楼-- · 2020-02-09 17:00
Deceive 欺骗
5楼-- · 2020-02-09 17:01

https://github.com/Azure/Azure-DataFactory/tree/master/Samples/HttpDataDownloaderSample

Hi this is a custom data activity that dowloads a file by http request. You can achieve what you desire making small changes. Hope it helps.

查看更多
趁早两清
6楼-- · 2020-02-09 17:02

I have done this using Custom .Net Activities. I had a need to pull data from Salesforce API. I have a write up on how to do this here: http://eatcodelive.com/2016/02/06/accessing-azure-data-lake-store-from-an-azure-data-factory-custom-net-activity/ it is utilizing the data lake store but you can store the data anywhere.

Also have a look here for an example from microsoft: https://azure.microsoft.com/en-us/documentation/articles/data-factory-use-custom-activities/

Hope that helps.

查看更多
Lonely孤独者°
7楼-- · 2020-02-09 17:12

Data factory offers a generic HTTP connector and a specific REST connector, allowing you to do retrieve data from HTTP endpoints by using GET or POST methods.

Example: HTTP Linked Service

{
    "name": "HttpLinkedService",
    "properties":
    {
        "type": "Http",
        "typeProperties":
        {
            "authenticationType": "Anonymous",
            "url" : "https://en.wikipedia.org/wiki/"
        }
    }
}
查看更多
登录 后发表回答