dohq_teamcity.ProblemOccurrenceApi

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/ProblemOccurrenceApi and model examples
  • This is autogenerated page, don’t change them directly, use template. Read more in Development
Method HTTP request
get_problems GET /app/rest/problemOccurrences
serve_instance GET /app/rest/problemOccurrences/{problemLocator}

get_problems

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

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

locator = 'locator_example' # str |  (optional)
fields = 'fields_example' # str |  (optional)

try:
    api_response = tc.problem_occurrence_api.get_problems(locator=locator, fields=fields)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling ProblemOccurrenceApi->get_problems: %s\n" % e)
Name Types Notes
locator str [optional]
fields str [optional]
Return type:
ProblemOccurrences

Back to top

serve_instance

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

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

problem_locator = 'problem_locator_example' # str |
fields = 'fields_example' # str |  (optional)

try:
    api_response = tc.problem_occurrence_api.serve_instance(problem_locator, fields=fields)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling ProblemOccurrenceApi->serve_instance: %s\n" % e)
Name Types Notes
problem_locator str  
fields str [optional]
Return type:
ProblemOccurrence

Back to top