简体   繁体   English

获取使用 .NET sdk 运行的所有 Azure 数据工厂管道

[英]Get all Azure Data Factory pipeline runs using .NET sdk

How can be loaded all pipeline runs from Azure Data Factory using .NET SDK in one HTTP query to the factory?如何使用 .NET SDK 从 Azure 数据工厂加载所有管道运行到工厂? I have tried the QueryByFactoryWithHttpMessagesAsync method but it returns only 100 last runs.我已经尝试过QueryByFactoryWithHttpMessagesAsync方法,但它只返回 100 次最后运行。

var filter = new RunFilterParameters(DateTime.MinValue, DateTime.Now);

return client.PipelineRuns.QueryByFactoryWithHttpMessagesAsync(
                dataFactoryParameters.ResourceGroup,
                dataFactoryParameters.DataFactoryName,
                filter).Result.Body.Value;

I don't have a code sample, but the QueryByFactoryAsync method returns a PipelineRunsQueryResponse instance, which includes a ContinuationToken property.我没有代码示例,但QueryByFactoryAsync 方法返回一个PipelineRunsQueryResponse实例,其中包括一个ContinuationToken属性。 You should be able to use that to get the next group of values.您应该能够使用它来获取下一组值。

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

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