Get list of projects that are Archived via REST Follow
There is a nice cctray REST api to get all the projects and configurations but no it seems no easy way to find out what projects are archived.
Is there any REST call to get this info ?
Please sign in to leave a comment.
According to the documentation (http://confluence.jetbrains.com/display/TW/REST+API+Plugin) there does not appear to be a simple way to just get the archived projects, but it should be relatively simple to loop through the project list (http://teamcity:8111/httpAuth/app/rest/projects) and then read the "archived" property for each project (http://teamcity:8111/httpAuth/app/rest/projects/<projectLocator>/archived).
For those stumbling upon this question / answer... nearly 8 years later.
Use locator to filter your request, like so:
You can use this method to filter any request -- and this really should be included as an example in official the API Docs