Suspend a process

edit

Suspend 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

edit

POST <kibana host>:<port>/api/endpoint/action/suspend_process

Request body

edit

A JSON object with these fields:

Name Type Description Required

endpoint_ids

Array (String)

The IDs of endpoints where you want to issue this action.

Yes

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

comment

String

Attach a comment to this action’s log. The comment text will appear in associated cases.

No

parameters.pid

Number

The process ID (PID) of the process to suspend.

Yes, must provide either parameters.pid or parameters.entity_id, but not both

parameters.entity_id

String

The entity ID of the process to suspend.

Yes, must provide either parameters.pid or parameters.entity_id, but not both

Example requests

edit

Suspends 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

edit

A 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"
    }
  }
}