Get list of projects that are Archived via REST

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 ?

2 comments
Comment actions Permalink

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).

0
Comment actions Permalink

For those stumbling upon this question / answer... nearly 8 years later.

Use locator to filter your request, like so:

[host]/httpauth/app/rest/projects?locator=archived:false

You can use this method to filter any request -- and this really should be included as an example in official the API Docs

0

Please sign in to leave a comment.