util.logfile.appserver.lastnlines
Operation: GET /dataservice/util/logfile/appserver/lastnlines
List last N lines of log file. This API accepts content type as text/plain. It is mandatory to provide response content type. Any other content type would result in empty response.
def list_v_manage_server_log_last_n_lines(
lines: Optional[int] = 100,
) -> Any: ...
Example:
from catalyswan.core import create_client
url = "example.com"
username = "admin"
password = "password123"
with create_client(
url=url, username=username, password=password
) as client:
client.util.logfile.appserver.lastnlines.list_v_manage_server_log_last_n_lines()