dxlvtapiservice.requesthandlers module

class dxlvtapiservice.requesthandlers.VirusTotalApiRequestCallback(app, is_get, required_params)

Bases: dxlclient.callbacks.RequestCallback

Request callback used to convert DXL requests to VirusTotal API invocations and send back a corresponding DXL response.

Constructor parameters:

  • app -- The application this handler is associated with
  • is_get -- Whether to use GET or POST when invoking the VirusTotal API method
  • required_params -- The list of required parameters for the VirusTotal API method
PARAM_DOMAIN = 'domain'

The domain request parameter

PARAM_IP = 'ip'

The IP address request parameter

PARAM_RESOURCE = 'resource'

The resource request parameter

PARAM_URL = 'url'

The URL request parameter


Invoked when a request message is received.

Parameters:request -- The request message