Proxy server
- Last Updated: May 13, 2025
- 1 minute read
- DataDirect Connectors
- JDBC
- TeamCity 6.0
- Documentation
This string includes the properties you may need to connect through a proxy server with Bearer Token authentication.
jdbc:datadirect:teamcity:ServerName=server_name;ProxyHost=proxy_host;
ProxyPassword=proxy_password;ProxyPort=proxy_port;ProxyUser=proxy_user;
AuthenticationMethod=BearerToken;SecurityToken=security_token;
[property=value[;...]];
where:
- server_name
- specifies the base URL of the TeamCity instance to which you want to issue requests. For example, https://teamcity.company.com for enterprise accounts.
- proxy_host
- specifies the proxy server to use for the first connection.
- proxy_password
- specifies the password needed to connect to a proxy server for the first connection.
- proxy_port
- specifies the port number where the proxy server is listening for
requests for the first connection. The default is
0.
- proxy_user
- specifies the user name needed to connect to a proxy server for the first connection.
- security_token
- specifies the security token used to authenticate to the TeamCity
service.
Important: The security token is a confidential value used to authenticate to the server. To prevent unauthorized access, this value must be securely maintained.
- property=value
- specifies connection property settings. Multiple properties are separated by a semi-colon.
The following example connection string includes the properties required for using a proxy server with Bearer Token authentication.
Connection conn = DriverManager.getConnection
("jdbc:datadirect:teamcity:ServerName=https://teamcity.company.com;
ProxyHost=pserver;ProxyPassword=secret;ProxyPort=808;
ProxyUser=jsmith;AuthenticationMethod=bearertoken;
SecurityToken=12a3=bCD/EfGh4Ijk+Lgd8g-44tk3c527831;");