Thanks for the question and using MS Q&A platform.
To fetch in-progress pipeline details via an API call in Azure Data Factory, you can use the following API:
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryPipelineRuns?api-version=2018-06-01
However, this API only returns data for successful, failed, and canceled pipelines. At the time of the API call, you cannot get details of in-progress pipelines.
To get details of in-progress pipelines, you can use the following API:
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryActivityRuns?api-version=2018-06-01
This API returns data for all activity runs, including in-progress pipelines. You can filter the results to only show in-progress pipelines by adding the following filter to the API call:
$filter=status eq 'InProgress'
For more information, please refer: https://video2.skills-academy.com/en-us/rest/api/datafactory/activity-runs/query-by-pipeline-run?view=rest-datafactory-2018-06-01&tabs=HTTP
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.