megha
megha

Reputation: 833

How to get list of release pipeline name in Azure DevOps using rest api

I am working on script to list all release pipeline names

I found this rest api in Microsoft docs -

GET https://vsrm.dev.azure.com/{organization}/{project}/_apis/release/releases?api-version=6.0

This lists all releases for each release pipeline

Using following pipelines rest api I can get count and info of only build pipelines -

GET https://dev.azure.com/{organization}/{project}/_apis/pipelines?api-version=6.0-preview.1

Is there similar rest api available like pipeline api to get count and info of all release pipelines (not all releases for each release pipeline)

or Is there way to get all pipelines builds and releases using single rest api ?

Upvotes: 3

Views: 7478

Answers (1)

Levi Lu-MSFT
Levi Lu-MSFT

Reputation: 30353

You need to use Definitions - List api to get the count and info of all release pipelines.

GET https://vsrm.dev.azure.com/{organization}/{project}/_apis/release/definitions?api-version=6.1-preview.4

There is not a single rest api to get all pipelines builds and releases. If you want to get all pipeline builds. You need to use Builds - List api. And Releases - List api for pipeline releases

Upvotes: 5

Related Questions