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 :doc:`/examples/api/FederationApi` and model examples + This is autogenerated page, don't change them directly, use template. Read more in :doc:`/development` .. list-table:: :widths: 20 80 :header-rows: 1 * - Method - HTTP request * - :ref:`add_server` - **PUT** ``/app/rest/federation/servers`` * - :ref:`servers` - **GET** ``/app/rest/federation/servers`` .. _add_server: add_server ----------------- .. code-block:: python 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) .. list-table:: :widths: 20 20 60 :header-rows: 1 * - Name - Types - Notes * - **body** - `Servers <../models/Servers.html>`_ - [optional] Return type: `Servers <../models/Servers.html>`_ `Back to top <#>`_ .. _servers: servers ----------------- .. code-block:: python 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) .. list-table:: :widths: 20 20 60 :header-rows: 1 * - Name - Types - Notes * - **fields** - **str** - [optional] Return type: `Servers <../models/Servers.html>`_ `Back to top <#>`_