Stop a File Download Operation

Endpoint URL: https://<your server>/rest/fetchfile/close/:batchID
Endpoint URI: fetchfile/close/:batchID

Action: GET

Aborts a file download operation that is in progress. You must also send a request to get the operation batch number for the file download. For details on these requests, see Get a Download Batch Number.

Note

Before running this request, ensure that you have logged into the Cybereason platform. For details, see Log in with the API.

Request Headers

You must add an Content-Type:application/json header with the request.

Note

If you are using cURL, add the authorization cookie details or the path to the file with cookie details with every request.


Request Body

None


Request Parameters

URL/URI parameters: none

Request Body Parameters: none


Response Status Codes

This request can return the following status codes:

  • 200: Success OK


Response Success Schema

The response can contain any of the following fields:

Field

Type

Description

data

Boolean

Indicates whether there is a response.

status

Enum

The status of the file download start operation. Possible values include:

  • PARTIAL_SUCCESS

  • NO_SERVERS_CONFIGURED

  • QUERY_LIMIT_CROSSED

  • FAILURE

  • TIMEOUT_ERROR

message

String

The message received from the server about this operation.


Response Failure Schema

None


Example: Stop a file download

Request

curl --request GET \
    --url https://12.34.56.78/rest/fetchfile/close/1638177597 \
    --header 'Content-Type:application/json' \

Response

{
  "data":true,
  "status":"SUCCESS",
  "message":""
}