Skip to content

Commit

Permalink
add more cortex queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Anko59 committed Nov 26, 2024
1 parent da08ad3 commit 15a52a5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions thehive4py/endpoints/cortex.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,26 @@ def create_responder_action(
"responderId": responder_id,
},
)

def list_analyzers(self) -> dict:
return self._session.make_request("GET", path="/api/connector/cortex/analyzer")

def list_analyzers_by_type(self, data_type: str) -> dict:
return self._session.make_request(
"GET", path=f"/api/connector/cortex/analyzer/type/{data_type}"
)

def get_analyzer(self, object_id: str) -> dict:
return self._session.make_request(
"GET", path=f"/api/connector/cortex/analyzer/{object_id}"
)

def get_analyzer_job(self, job_id: str) -> dict:
return self._session.make_request(
"GET", path=f"/api/connector/cortex/analyzer/{job_id}"
)

def list_responders(self, entity_type: str, entity_id: str) -> dict:
return self._session.make_request(
"GET", f"/api/connector/cortex/responder/{entity_type}/{entity_id}"
)

0 comments on commit 15a52a5

Please sign in to comment.