为 teamcity rest api 中的代理编辑分配的兼容配置

Edit assigned compatible configurations for agents in teamcity rest api

是否可以在 teamcity rest api 中为代理编辑分配的兼容配置?
(我使用的是 9.0.2)。

是 - 您可以通过 REST API:

向任何代理池添加或删除任何项目

POST the plain text (name) to http://teamcity.url/app/rest/agentPools/id:XXX/projects

Delete a project from a pool: DELETE http://teamcity.url/app/rest/agentPools/id:XXX/projects/id:YYY

查看文档 here

代理池只是 TeamCity 中的一个 n:m 映射概念,允许您指定哪些代理可以 运行 哪些项目 - 它比直接将代理分配给项目具有更大的灵活性。