简体   繁体   中英

Get running instances of devops pipeline in Azure Devops

I need to get all the running instances of a particular pipeline.

The API in the docs ,

在此处输入图像描述

This API allows us to get top 10K runs, but it does not seem to allow a filter where I can add a filter on the state of the pipeline, ie inProgress/running etc.

One way obviously is getting these top 10K runs and filtering them, which would be highly inefficient.

Is there a different API where I can get active runs of a pipeline or is this not possible?

Check this API: Builds - List . You can use statusFilter here:

在此处输入图像描述

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