def collectGatewayDiagnostics(connection, zipFilePath): ''' This method will perform a POST request to collect gateway log files and packages them into a ZIP file. Args: - connection is the connection object that manages the HTTP data transfers between the client and the REST API - zipFilePath is the local zip path on the machine that holds the IxLoad instance ''' collectGatewayDiagnosticsUrl = "logs/operations/collectDiagnostics" data = {"zipFileLocation": zipFilePath} performGenericOperation(connection, collectGatewayDiagnosticsUrl, data)