dohq_teamcity.InvestigationApi¶
Note
- All
serve_*method have aliases with get:serve_something==get_something - Some API have
getmethod - default method to get object by locator (e.gagent_api.get('id:123')returnAgentmodel by id - See more examples on page /examples/api/InvestigationApi and model examples
- This is autogenerated page, don’t change them directly, use template. Read more in Development
| Method | HTTP request |
|---|---|
| create_instance | POST /app/rest/investigations |
| create_instances | POST /app/rest/investigations/multiple |
| delete_instance | DELETE /app/rest/investigations/{investigationLocator} |
| get_investigations | GET /app/rest/investigations |
| replace_instance | PUT /app/rest/investigations/{investigationLocator} |
| serve_instance | GET /app/rest/investigations/{investigationLocator} |
create_instance¶
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.Investigation() # Investigation | (optional)
fields = 'fields_example' # str | (optional)
try:
api_response = tc.investigation_api.create_instance(body=body, fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvestigationApi->create_instance: %s\n" % e)
| Name | Types | Notes |
|---|---|---|
| body | Investigation | [optional] |
| fields | str | [optional] |
- Return type:
- Investigation
create_instances¶
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.Investigations() # Investigations | (optional)
fields = 'fields_example' # str | (optional)
try:
api_response = tc.investigation_api.create_instances(body=body, fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvestigationApi->create_instances: %s\n" % e)
| Name | Types | Notes |
|---|---|---|
| body | Investigations | [optional] |
| fields | str | [optional] |
- Return type:
- Investigations
delete_instance¶
from pprint import pprint
from dohq_teamcity import TeamCity, ApiException
# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))
investigation_locator = 'investigation_locator_example' # str |
try:
tc.investigation_api.delete_instance(investigation_locator)
except ApiException as e:
print("Exception when calling InvestigationApi->delete_instance: %s\n" % e)
| Name | Types | Notes |
|---|---|---|
| investigation_locator | str |
- Return type:
- void (empty response body)
get_investigations¶
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.investigation_api.get_investigations(locator=locator, fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvestigationApi->get_investigations: %s\n" % e)
| Name | Types | Notes |
|---|---|---|
| locator | str | [optional] |
| fields | str | [optional] |
- Return type:
- Investigations
replace_instance¶
from pprint import pprint
from dohq_teamcity import TeamCity, ApiException
# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))
investigation_locator = 'investigation_locator_example' # str |
body = dohq_teamcity.Investigation() # Investigation | (optional)
fields = 'fields_example' # str | (optional)
try:
api_response = tc.investigation_api.replace_instance(investigation_locator, body=body, fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvestigationApi->replace_instance: %s\n" % e)
| Name | Types | Notes |
|---|---|---|
| investigation_locator | str | |
| body | Investigation | [optional] |
| fields | str | [optional] |
- Return type:
- Investigation
serve_instance¶
from pprint import pprint
from dohq_teamcity import TeamCity, ApiException
# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))
investigation_locator = 'investigation_locator_example' # str |
fields = 'fields_example' # str | (optional)
try:
api_response = tc.investigation_api.serve_instance(investigation_locator, fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvestigationApi->serve_instance: %s\n" % e)
| Name | Types | Notes |
|---|---|---|
| investigation_locator | str | |
| fields | str | [optional] |
- Return type:
- Investigation