Skip to content

Commit

Permalink
update to list actions api
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-tavares committed Feb 22, 2024
1 parent 383142a commit b06a88a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
7 changes: 7 additions & 0 deletions docs/management/api/_common-reusable-content.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

// tag::agent-type-accepted-values[]
Accepted values are:

* `endpoint` (default)
* `sentinel_one` (currently in Technical Preview)
// end::agent-type-accepted-values[]
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@


|`endpoint_ids` |Array (String) |The IDs of endpoints where you want to issue this action. |Yes
|`agent_type` |String a|

The type of Agent that the host is running with. Accepted values are:

* `endpoint` (default)
* `sentinel_one` (currently in Technical Preview)
|`agent_type` |String a|The type of Agent that the host is running with.
include::_common-reusable-content.asciidoc[tags=agent-type-accepted-values]
|No
|`alert_ids` |Array (String) |If this action is associated with any alerts, they can be specified here. The action will be logged in any cases associated with the specified alerts. |No
|`case_ids` |Array (String) |The IDs of cases where the action taken will be logged. |No
Expand Down
12 changes: 12 additions & 0 deletions docs/management/api/list-actions-api.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,15 @@ Accepted values are:
|`userIds` |string[] |A list of user IDs. |
|`startDate` |string |A start date in ISO format or {ref}/common-options.html#date-math[Date Math format]. |
|`endDate` |string |An end date in ISO format or {ref}/common-options.html#date-math[Date Math format]. |
|`agentTypes`|string or string[] a|List of agent types to retrieve.
include::_common-reusable-content.asciidoc[tags=agent-type-accepted-values]
|
|`withOutputs` |string or string[] |A list of action IDs that should include the complete output of the action.
|
|types |string or string[] a|A list of action types. Valid values are:

* `automated` - actions that were triggered from Rules
* `manual` - actions that were triggered manually via API
|
|==============================================

Expand Down Expand Up @@ -85,6 +93,7 @@ GET /api/endpoint/action?agentIds=a123&agentIds=b456&commands=isolate&commands=k
"afdc366c-e2e0-4cdb-ae1d-94575bd2d8e0"
],
"command": "running-processes",
"agentType": "endpoint",
"startedAt": "2022-08-08T15:24:57.402Z",
"isCompleted": true,
"completedAt": "2022-08-08T09:50:47.672Z",
Expand All @@ -98,6 +107,7 @@ GET /api/endpoint/action?agentIds=a123&agentIds=b456&commands=isolate&commands=k
"afdc366c-e2e0-4cdb-ae1d-94575bd2d8e0"
],
"command": "isolate",
"agentType": "endpoint",
"startedAt": "2022-08-08T15:23:37.359Z",
"isCompleted": true,
"completedAt": "2022-08-08T10:41:57.352Z",
Expand All @@ -111,6 +121,7 @@ GET /api/endpoint/action?agentIds=a123&agentIds=b456&commands=isolate&commands=k
"afdc366c-e2e0-4cdb-ae1d-94575bd2d8e0"
],
"command": "kill-process",
"agentType": "endpoint",
"startedAt": "2022-08-08T14:38:44.125Z",
"isCompleted": true,
"completedAt": "2022-08-08T09:44:50.952Z",
Expand All @@ -125,6 +136,7 @@ GET /api/endpoint/action?agentIds=a123&agentIds=b456&commands=isolate&commands=k
"afdc366c-e2e0-4cdb-ae1d-94575bd2d8e0"
],
"command": "unisolate",
"agentType": "endpoint",
"startedAt": "2022-08-08T14:38:15.391Z",
"isCompleted": true,
"completedAt": "2022-08-08T09:40:47.398Z",
Expand Down

0 comments on commit b06a88a

Please sign in to comment.