REST API禁用/启用代理池/队列? [英] REST API to Disable/Enable Agent Pools/Queues?

查看:76
本文介绍了REST API禁用/启用代理池/队列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在执行修补之前禁用所有构建资源。有没有人知道是否可以通过REST API(通过PowerShell)禁用/启用vNext代理和/或XAML构建代理和控制器?  若然,请与您分享您的密码吗?
我知道我可以去禁用Windows服务,但是想知道是否有更好的方法而不必直接与机器交互。

I am trying to disable all build resources prior to performing patching. Does anyone know if disabling/enabling vNext Agents and/or XAML build agents and controllers is possible via the REST API (via PowerShell)?  If so, can you please share your code? I know I can go and disable the Windows service(s), but was wondering if there was a better way without having to interact directly with the machines.




推荐答案

您好DJSD1904,

Hi DJSD1904,

有 不提供一个REST API,用于启用,禁用TFS中的代理。停止代理服务的解决方法是切实可行的。

There doesn't provide a REST API to enable, disable agents in TFS. The workaround to stop agent service is practicable.

您可以提交用户语音
这里

最好的问候 

Best Regards 


这篇关于REST API禁用/启用代理池/队列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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