...
- Using basic HTTP authentication. Provide a valid TeamCity username and password with the request. You can force basic auth by including
"httpAuth
" before the "/app/rest
" part: e.g.http://teamcity:8111/httpAuth/app/rest/builds
- Using access to the server as a guest user (if enabled) include "
guestAuth
" before the "/app/rest
" part: e.g.:http://teamcity:8111/guestAuth/app/rest/builds
- if you are checking REST
GET
requests from within a browser and you are logged in to TeamCity in the browser, you can just use "/app/rest
" URL: e.g.http://teamcity:8111/app/rest/builds
There is also a workaround for not sending credentials with every requestAuthentication can be slow when not built-in authentication module is used, consider applying a workaround for reusing authentication between sequential requests.
If you perform a request from within a TeamCity build, for a limited set of build-related operations (like downloading artifacts) you can use values of teamcity.auth.userId/teamcity.auth.password
system properties as credentials (within TeamCity settings you can reference them as %system.teamcity.auth.userId%
and %system.teamcity.auth.password%
).
...