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?
Please sign in to leave a comment.
You can get the list of unauthorized agent using the following request:
See the related section in documentation: https://confluence.jetbrains.com/display/TCD9/REST+API#RESTAPI-Agents