dohq_teamcity.FederationApi

Note

  • All serve_* method have aliases with get: serve_something == get_something
  • Some API have get method - default method to get object by locator (e.g agent_api.get('id:123') return Agent model by id
  • See more examples on page /examples/api/FederationApi and model examples
  • This is autogenerated page, don’t change them directly, use template. Read more in Development
Method HTTP request
add_server PUT /app/rest/federation/servers
servers GET /app/rest/federation/servers

add_server

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

body = dohq_teamcity.Servers() # Servers |  (optional)

try:
    api_response = tc.federation_api.add_server(body=body)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling FederationApi->add_server: %s\n" % e)
Name Types Notes
body Servers [optional]
Return type:
Servers

Back to top

servers

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

fields = 'fields_example' # str |  (optional)

try:
    api_response = tc.federation_api.servers(fields=fields)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling FederationApi->servers: %s\n" % e)
Name Types Notes
fields str [optional]
Return type:
Servers

Back to top