Is it possible to edit assigned compatible configurations for agents in teamcity rest api?
(I am using 9.0.2).
Asked
Active
Viewed 641 times
1
1 Answers
1
Yes - you can add or remove any project to any agent pool through the 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
See the docs here.
An agent pool is just a n:m mapping concept in TeamCity that allows you to specify which agents can run which projects - it allows for more flexibility than directly assigning agents to projects.

BrokenGlass
- 158,293
- 28
- 286
- 335
-
Thanks! I was looking at an old documentation :\ – MTZ4 Apr 06 '15 at 08:07