find agent id

I will manually spin up a TC agent, then have the server curl to authorize itself.

curl -u username:password --request PUT --data true --header "Content-Type: text/plain" https://server/httpAuth/app/rest/agents/id:5145/authorized

How do I obtain the id?  I see it in the log files, but is there an easier way to obtain the id rather than grepping log files?

1 comment
Comment actions Permalink

You can get the list of unauthorized agent using the following request:

http://teamcity/httpAuth/app/rest/agents?includeUnauthorized=true

See the related section in documentation: https://confluence.jetbrains.com/display/TCD9/REST+API#RESTAPI-Agents

0

Please sign in to leave a comment.