All URIs are relative to http://localhost:8080/api/codex/v1
Method | HTTP request | Description |
---|---|---|
get_debug_info | GET /debug/info | Gets node information |
set_debug_log_level | POST /debug/chronicles/loglevel | Set log level at run time |
DebugInfo get_debug_info()
Gets node information
import codex_api_client
from codex_api_client.models.debug_info import DebugInfo
from codex_api_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:8080/api/codex/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = codex_api_client.Configuration(
host = "http://localhost:8080/api/codex/v1"
)
# Enter a context with an instance of the API client
with codex_api_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = codex_api_client.DebugApi(api_client)
try:
# Gets node information
api_response = api_instance.get_debug_info()
print("The response of DebugApi->get_debug_info:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DebugApi->get_debug_info: %s\n" % e)
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Node's information | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
set_debug_log_level(level)
Set log level at run time
import codex_api_client
from codex_api_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:8080/api/codex/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = codex_api_client.Configuration(
host = "http://localhost:8080/api/codex/v1"
)
# Enter a context with an instance of the API client
with codex_api_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = codex_api_client.DebugApi(api_client)
level = 'level_example' # str |
try:
# Set log level at run time
api_instance.set_debug_log_level(level)
except Exception as e:
print("Exception when calling DebugApi->set_debug_log_level: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
level | str |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | Successfully log level set | - |
400 | Invalid or missing log level | - |
500 | Well it was bad-bad | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]