Suspend a process
editSuspend a process
editSuspend a process on a host running Endpoint and Cloud Security.
You must have the superuser
role and at least an Enterprise license to perform this action.
Request URL
editPOST <kibana host>:<port>/api/endpoint/action/suspend_process
Request body
editA JSON object with these fields:
Name | Type | Description | Required |
---|---|---|---|
|
Array (String) |
The IDs of endpoints where you want to issue this action. |
Yes |
|
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 |
|
Array (String) |
The IDs of cases where the action taken will be logged. |
No |
|
String |
Attach a comment to this action’s log. The comment text will appear in associated cases. |
No |
|
Number |
The process ID (PID) of the process to suspend. |
Yes, must provide either |
|
String |
The entity ID of the process to suspend. |
Yes, must provide either |
Example requests
editSuspends the process with entity_id abc123
on a host with an endpoint_id
value of ed518850-681a-4d60-bb98-e22640cae2a8
and comments suspend the process
:
POST /api/endpoint/action/suspend_process { "endpoint_ids": ["ed518850-681a-4d60-bb98-e22640cae2a8"], "parameters": { "entity_id": "abc123" }, "comment": "suspend the process" }
Response code
edit-
200
- Indicates a successful call.
-
403
-
Indicates insufficient user role (must be
superuser
), or unsupported license level (minimum Enterprise license required). -
500
- General error. A response message will provide additional details.
Response payload
editA JSON object with an id
that refers to the submitted action.
Example response
edit{ "data": { "id": "233db9ea-6733-4849-9226-5a7039c7161d", "agents": ["ed518850-681a-4d60-bb98-e22640cae2a8"], "command": "suspend-process", "isExpired": false, "isCompleted": true, "wasSuccessful": true, "errors": [], "startedAt": "2022-07-29T19:08:49.126Z", "completedAt": "2022-07-29T19:09:44.961Z", "outputs": { "ed518850-681a-4d60-bb98-e22640cae2a8": { "type": "json", "content": { "key": "value" } } }, "createdBy": "myuser", "comment": "suspend the process", "parameters": { "entity_id": "abc123" } } }