能否使用 Azure DevOps Rest API 检索已删除的分支策略配置?

Can you retrieve deleted branch policy configurations using the Azure DevOps Rest APIs?

我正在使用 Azure DevOps REST APIs 来做一些分支策略审计工作。我想查看所有策略配置,活动的和已删除的。 API: https://dev.azure.com/organization/project/_apis/policy/configurations/?api-version=5.0 only returns active policy configurations. In-active ones should have the isDeleted flag as true. I can access those policy configurations if I already know the configuration ID and if it is included in the API call like this: https://dev.azure.com/organization/project/_apis/policy/configurations/7001?api-version=5.0

我想知道是否有办法列出与存储库或项目关联的已删除策略配置。

Rest API暂不支持查询已删除策略配置。 当获取策略配置列表时,REST API 下面只输出未删除的策略:

GET https://dev.azure.com/{organization}/{project}/_apis/policy/configurations?api-version=5.0

您可以通过此提交建议票,建议新功能url,促进更丰富功能的开发。

注意:提出建议后,您可以对该反馈进行投票和评论。当有足够的社区对此反馈进行投票和评论时,产品团队成员将认真对待此反馈