TFS REST API发布环境 [英] TFS REST API Release Environments

查看:81
本文介绍了TFS REST API发布环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为TFS中的所有项目(本地版本15.112.26307.0)编译所有环境批准者的列表。我根据
文档使用$ expand = environments标志。但是,并非所有环境信息都在JSON中返回。具体而言,没有关于部署前/后批准的信息,也没有部署
步骤(下面的屏幕截图)。我需要查询另一个地方来检索该信息吗?


I am attempting to compile a list of all environment approvers for all of our projects in TFS (on-prem Version 15.112.26307.0). I am using the $expand=environments flag according to the documentation. However, not all of the environment information is being returned in the JSON. Specifically, there is no information on pre/post deploy approvals nor deploy steps (screenshot below). Is there another place I need to query to retrieve that information?




Fred Szelag

Fred Szelag

推荐答案

您好Fred Szelag,

Hi Fred Szelag,

您是否使用过"获取发布定义列表" API?此API无法扩展所有环境信息,它只是提供所有版本定义的一般环境信息。

Did you use "Get a list of release definitions" API? This API could not expand all the environment information, it just provide general environment information for all the release definition.

有关环境的详细信息,您需要使用"获取版本定义" ;  API,特定于发布定义ID。

For detail information of environment , you need to use "Get a release definition" API, specific the Release definition id.

最好的问候


这篇关于TFS REST API发布环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆