我正在使用nodeJS创建在data factory v2中运行的pipelin,我需要在主体中传递两个参数。这样做时,参数不会传递到管道。管道已触发,但管道未采用我以JSO格式传递的参数
创建我在请求中使用的选项常量:
const options = {
hostname: 'management.azure.com',
port: 443,
path: '/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.DataFactory/factories/<datafactoryName>/pipelines/<pipelineName>/createRun?api-version=2018-06-01',
method: 'POST',
body: req.body,
headers: {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json'
}
};
需求主体如下:
{
“inputpath”: “input file location”,
“outputpath”: “output file location”
}
对ADFv2 Rest API的最终请求:
var req = https.request(options, result => {
result.on('data', (chunk) => {
res.send(chunk);
});
})
req.on('data', (data) => {
});