问题描述
我找到了手动干预 - 获取
现在,我们可以将 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.
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 在经典发布管道中使用手动干预任务获取审批者详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!