Exemple #1
0
 def __init__(self, username, password, host="127.0.0.1", port=7000):
     """
     @param api_host: The Alienvault Rest server IP
     @param port: The Alienvault REst server listening port. Def
     """
     self.username = username
     self.password = password
     self.host = host
     self.port = port
     self.https_conn = HttpConn(self.username, self.password, self.host,
                                self.port)
Exemple #2
0
 def __init__(self, username, password, host="127.0.0.1", port=7000):
     """
     @param api_host: The Alienvault Rest server IP
     @param port: The Alienvault REst server listening port. Def
     """
     self.username = username
     self.password = password
     self.host = host
     self.port = port
     self.https_conn = HttpConn(self.username, self.password, self.host, self.port)
Exemple #3
0
class AlienvaultClient(object):
    """Alienvault REST APi client
    """

    def __init__(self, username, password, host="127.0.0.1", port=7000):
        """
        @param api_host: The Alienvault Rest server IP
        @param port: The Alienvault REst server listening port. Def
        """
        self.username = username
        self.password = password
        self.host = host
        self.port = port
        self.https_conn = HttpConn(self.username, self.password, self.host, self.port)

    def get_sensors(self):
        response = self.https_conn.do_request(
            request_url="/av/api/1.0/config/sensors", request_params="", request_method="GET"
        )
        return response
Exemple #4
0
class AlienvaultClient(object):
    """Alienvault REST APi client
    """
    def __init__(self, username, password, host="127.0.0.1", port=7000):
        """
        @param api_host: The Alienvault Rest server IP
        @param port: The Alienvault REst server listening port. Def
        """
        self.username = username
        self.password = password
        self.host = host
        self.port = port
        self.https_conn = HttpConn(self.username, self.password, self.host,
                                   self.port)

    def get_sensors(self):
        response = self.https_conn.do_request(
            request_url="/av/api/1.0/config/sensors",
            request_params="",
            request_method="GET")
        return response