You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tool/entity_tools.py
+39-9Lines changed: 39 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -100,23 +100,53 @@ async def list_entities(
100
100
101
101
asyncdefget_account_details(
102
102
self,
103
-
account_id: Annotated[int, Field(description="ID of the account in Vectra platform to retrieve details for", ge=1)]
103
+
account_id: Annotated[int, Field(description="ID of the account in Vectra platform to retrieve details for", ge=1)],
104
+
fields: Annotated[
105
+
list[str] |None,
106
+
Field(description="Fields to return in the results. Available fields: id, url, account_type, assignment, associated_accounts, certainty, data_source, detection_set, detection_summaries, last_detection_timestamp, name, note, note_modified_by, note_modified_timestamp, notes, past_assignments, privilege_category, privilege_level, probable_home, sensors, severity, state, tags, threat")
107
+
] =None,
108
+
exclude_fields: Annotated[
109
+
list[str] |None,
110
+
Field(description="Fields to exclude in the response object. Accepts comma-separated list.")
111
+
] =None,
112
+
include_access_history: Annotated[
113
+
bool,
114
+
Field(description="Include account access history in the response")
115
+
] =False,
116
+
include_detection_summaries: Annotated[
117
+
bool,
118
+
Field(description="Include detection summaries for the detections on the account in the response object.")
119
+
] =True,
120
+
include_external: Annotated[
121
+
bool,
122
+
Field(description="Include external data in the response object.")
123
+
] =False,
124
+
src_linked_account: Annotated[
125
+
str|None,
126
+
Field(description="Source linked account filter")
127
+
] =False
104
128
) ->str:
105
129
"""
106
-
Get complete detailed information about a specific account entity.
130
+
Get complete detailed information about a specific account entity. This tool returns account details including detections, scoring information, associated accounts, access history, detection summaries, external data, and more. Response can be customized using various parameters to include or exclude specific fields and related data.
107
131
108
132
Returns:
109
-
str: Formatted string with detailed information about the account entity.
133
+
str: JSON string with detailed information about the account. It includes detections, scoring information, associated accounts, access history, detection summaries, external data, and more.
110
134
If the account is not found, returns a message indicating that no account was found with the specified ID.
111
135
If an error occurs during the request, raises an exception with the error message.
112
136
"""
113
137
try:
114
-
# Fetch account details using the client
115
-
account_details=awaitself.client.get_entity(
116
-
entity_id=account_id,
117
-
entity_type="account"# Specify the type as account
138
+
# Fetch account details using the v3.4 accounts API endpoint
0 commit comments