If the agent is a cloud profile, you would need to use a different approach. First, you will need the agentTypeId. This can be found using the endpoint of /app/rest/agentTypes. You can then search the results for your cloud name and grab the id number, which will be used as the agentTypeId in the next query.
To find the build history of the cloud agent, you can use the agentTypeId from above in an endpoint like:
You can use the locator feature in your request like this:
It is also possible to include the fields feature to further customize your request like this:
We do have some additional information available to help get you started in our documentation here:
https://www.jetbrains.com/help/teamcity/rest-api.html#RESTAPI-BuildRequests
Looks like the locator doesn't work if the agent is in cloud. I get a 404 (not found) when I use cloud AMI image name in place of agent name.
If the agent is a cloud profile, you would need to use a different approach. First, you will need the agentTypeId. This can be found using the endpoint of
/app/rest/agentTypes. You can then search the results for your cloud name and grab the id number, which will be used as the agentTypeId in the next query.To find the build history of the cloud agent, you can use the agentTypeId from above in an endpoint like: