简体   繁体   中英

Unable to configure Rest Api as a linked service in azure data factory

Hello i am trying to add this rest api as a linked service because I want to upload files to it.

But i am unable to configure it as a linked service.

My question how should I configure this in azure data factory?

Here under you will see a example that I got from the api documentation:

POST https://use4-mdm.dm-us.informaticacloud.com/rdm-service/external/v1/import Content-Type: multipart/form-data; boundary=6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm IDS-SESSION-ID: XXXXXXXXXXXXXXXXXXXXXX

Content-Disposition: form-data; name=file; filename=import-code-values.csv

Content-Disposition: form-data; name=importSettings Content-Type: application/json;charset=UTF-8

{ "delimiter":"COMMA", "textQualifier":"DOUBLE_QUOTE", "codepage":"UTF8", "dateFormat":"ISO", "containerType":"CODELIST", "containerId":"9ab3201990a54dcdc86f54cf", "startingRow":null }

As you want to add this REST API as a linked service because you want to upload files to it. you have to add it in sink.

First open your datafactory instance.

Go to Managed >> Linked Service >> New >> Rest and click on continue

在此处输入图像描述

Give name to linked service , select integration runtime or it will be generated automatically, give base URL for connector and select appropriate authentication and t est your connection and click on create .

在此处输入图像描述

After this in your activity in sink under sink dataset select this linked service and in request method select as POST .

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM