title: Teamcity REST API: How to get agent of last successful build
body: <p>Is there a way in Teamcity REST API to get the agent name of the last successful build. I am using Teamcity 8.0.6. I tried this</p>
  
  <pre><code>http://&lt;TeamcityServer&gt;/httpAuth/app/rest/buildTypes/id:BuildId/builds?status=SUCCESS
  </code></pre>
  
  <p>But the result returned doesn't contain Agent name.</p>