本文介绍了如何使用REST API在经典发行管道中使用“手动干预"任务获取批准者详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现了手动干预-获取

现在,我们可以使用ID与REST API手动干预-获取:

I found Manual Interventions - Get https://docs.microsoft.com/en-us/rest/api/azure/devops/release/manual%20interventions/get?view=azure-devops-rest-5.1#manualinterventionstatuswith GET-https://vsrm.dev.azure.com/{organization}/{project}/_apis/Release/releases/{releaseId}/manualinterventions/{manualInterventionId}?api-version=5.1

this as REST API to get the details, but the issue is, m not able to find/determine the 'manualInterventionId' in this API. I created release pipeline, set pre-deployment approver details in it, but can someone tell me the exact flow to get Approver details using Manual Interventions task in classic release pipeline.

解决方案

To get the manualInterventionId for the REST API Manual Interventions - Get, we could use the REST API Manual Interventions - List to list all manual interventions for a given release.

Manual Interventions - List:

GET https://vsrm.dev.azure.com/{organization}/{project}/_apis/Release/releases/{releaseId}/manualinterventions?api-version=5.1

Then we could get all manual interventions:

Now, we could use the Id with REST API Manual Interventions - Get:

这篇关于如何使用REST API在经典发行管道中使用“手动干预"任务获取批准者详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 19:54