Response Action
APIs for response actions
Restore a quarantined file on a requested endpoints. When filtering by multiple fields:
Response is concatenated using AND condition (OR is not supported).
Maximum result set size is 100.
Offset is the zero-based number of cases from the start of the result set.
Required license: Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.
{api_key}
{api_key_id}
Successful response
Bad Request. Got an invalid JSON.
Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.
Unauthorized access. User does not have the required license type to run this API.
Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.
Internal server error. A unified status for API communication type errors.
POST /public_api/v1/endpoints/restore HTTP/1.1
Host: api-yourfqdn
Authorization: text
x-xdr-auth-id: text
Content-Type: application/json
Accept: */*
Content-Length: 63
{
"request_data": {
"file_hash": "<hash value>",
"incident_id": 302
}
}{
"reply": {
"action_id": "<action ID>",
"status": 1,
"endpoints_count": "673"
}
}View the API required to call in order to download the file retrieved by the Retrieve File API request according to the action ID.
The response contains a file hash you need to download and then unzip to view:
Download the file.
curl -XPOST "https://api-{fqdn}/public_api/v1/download/<api_value>"
-H "x-xdr-auth-id:{API_KEY_ID}"
-H "Authorization:{API_KEY}"
-H 'Content-Type:application/json'
--output /tmp/file.zipUnzip the file:
unzip /tmp/file.zip
Required license: Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.
{api_key}
{api_key_id}
Successful response
Bad Request. Got an invalid JSON.
Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.
Unauthorized access. User does not have the required license type to run this API.
Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.
Internal server error. A unified status for API communication type errors.
POST /public_api/v1/actions/file_retrieval_details HTTP/1.1
Host: api-yourfqdn
Authorization: text
x-xdr-auth-id: text
Content-Type: application/json
Accept: */*
Content-Length: 50
{
"request_data": {
"group_action_id": "<action ID>"
}
}{
"reply": {
"data": {
"<endpoint_ID>": "https://api-{fqdn}/public_api/v1/download/<api_value>"
}
}
}Add files which do not exist in the allow or block lists to an allow list.
Required license: Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.
{api_key}
{api_key_id}
Successful response
true=File successfully added to the allow list.
Bad Request. Got an invalid JSON.
Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.
Unauthorized access. User does not have the required license type to run this API.
Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.
Internal server error. A unified status for API communication type errors.
POST /public_api/v1/hash_exceptions/allowlist HTTP/1.1
Host: api-yourfqdn
Authorization: text
x-xdr-auth-id: text
Content-Type: application/json
Accept: */*
Content-Length: 211
{
"request_data": {
"hash_list": [
"032196FB1A---DFCF69E5D553F0",
"365296EB1B---FCF29E5D553E4",
"365296EB1B---FCF69E3D553E4",
"365296EB1B---FCF69E5D553D4",
"365296EB1B---FCF79E5D553D4"
],
"comment": "test",
"incident_id": 5
}
}trueRetrieve the quarantine status for specified files.
Required license: Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.
{api_key}
{api_key_id}
Successful response
Bad Request. Got an invalid JSON.
Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.
Unauthorized access. User does not have the required license type to run this API.
Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.
Internal server error. A unified status for API communication type errors.
POST /public_api/v1/quarantine/status HTTP/1.1
Host: api-yourfqdn
Authorization: text
x-xdr-auth-id: text
Content-Type: application/json
Accept: */*
Content-Length: 131
{
"request_data": {
"files": [
{
"endpoint_id": "<endpoint ID>",
"file_path": "C:\\<file path>\\test_x64.msi",
"file_hash": "<hash value>"
}
]
}
}{
"reply": [
{
"endpoint_id": "<endpoint ID>",
"file_path": "C:\\<file path>\\test_x64.msi",
"file_hash": "<hash value>",
"status": false
}
]
}Quarantine file on selected endpoints. You can select up to 1000 endpoints.
Note: A success response means that the request reached the defined endpoints, however if the file was not found there, no quarantine action will take place. To ensure if the file has been quarantined, check the Cortex XDR Action Center.
When filtering by multiple fields:
Response is concatenated using AND condition (OR is not supported).
Maximum result set size is 1000.
Offset is the zero-based number of cases from the start of the result set.
Required license: Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.
{api_key}
{api_key_id}
Successful response
Bad Request. Got an invalid JSON.
Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.
Unauthorized access. User does not have the required license type to run this API.
Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.
Internal server error. A unified status for API communication type errors.
POST /public_api/v1/endpoints/quarantine HTTP/1.1
Host: api-yourfqdn
Authorization: text
x-xdr-auth-id: text
Content-Type: application/json
Accept: */*
Content-Length: 172
{
"request_data": {
"filters": [
{
"field": "endpoint_id_list",
"operator": "in",
"value": [
"<endpoint ID>"
]
}
],
"file_path": "C:\\<file path>\\test_x64.msi",
"file_hash": "<hash value>"
}
}{
"reply": {
"action_id": "[ID value]",
"status": "1",
"endpoints_count": "673"
}
}Add files which do not exist in the allow or block lists to a block list. You can view the block list in the UI at Investigation & Response > Response > Action Center > Block List.
Required license: Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.
{api_key}
{api_key_id}
Successful response
true=File successfully added to block list.
Bad Request. Got an invalid JSON.
Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.
Unauthorized access. User does not have the required license type to run this API.
Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.
Internal server error. A unified status for API communication type errors.
POST /public_api/v1/hash_exceptions/blocklist HTTP/1.1
Host: api-yourfqdn
Authorization: text
x-xdr-auth-id: text
Content-Type: application/json
Accept: */*
Content-Length: 211
{
"request_data": {
"hash_list": [
"032196FB1A---DFCF69E5D553F0",
"365296EB1B---FCF69E7D553E4",
"365296EB1B---FCF69E5D523E4",
"365296EB1B---FCF69E5D553D4",
"365296EB1B---FCF63E5D553D4"
],
"comment": "test",
"incident_id": 5
}
}trueReverse the isolation of one or more endpoints in single request.
Note: You can only send a request with either endpoint_id to unisolate one endpoint or with filters to unisolate more than one endpoint. An error is raised if you try to use both endpoint_id and the filters.
Required license: Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.
{api_key}
{api_key_id}
Successful response
Bad Request. Got an invalid JSON.
Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.
Unauthorized access. User does not have the required license type to run this API.
Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.
Internal server error. A unified status for API communication type errors.
POST /public_api/v1/endpoints/unisolate HTTP/1.1
Host: api-yourfqdn
Authorization: text
x-xdr-auth-id: text
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"request_data": {
"endpoint_id": "<endpoint ID>"
}
}{
"reply": {
"action_id": "<action ID>",
"status": "1",
"endpoints_count": "673"
}
}Cancel the scan of selected endpoints. A scan can only be aborted if the selected endpoints are in Pending or in Progress status.
When filtering by multiple fields:
Response is concatenated using AND condition (OR is not supported).
Offset is the zero-based number of endpoints from the start of the result set.
Required license: Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.
{api_key}
{api_key_id}
Successful response
Bad Request. Got an invalid JSON.
Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.
Unauthorized access. User does not have the required license type to run this API.
Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.
Internal server error. A unified status for API communication type errors.
POST /public_api/v1/endpoints/abort_scan HTTP/1.1
Host: api-yourfqdn
Authorization: text
x-xdr-auth-id: text
Content-Type: application/json
Accept: */*
Content-Length: 34
{
"request_data": {
"filters": "all"
}
}{
"reply": {
"action_id": "text",
"endpoints_count": "text"
}
}Run a scan on selected endpoints.
Response is concatenated using AND condition (OR is not supported).
Offset is the zero-based number of cases from the start of the result set.
Required license: Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.
{api_key}
{api_key_id}
Successful response
Bad Request. Got an invalid JSON.
Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.
Unauthorized access. User does not have the required license type to run this API.
Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.
Internal server error. A unified status for API communication type errors.
POST /public_api/v1/endpoints/scan HTTP/1.1
Host: api-yourfqdn
Authorization: text
x-xdr-auth-id: text
Content-Type: application/json
Accept: */*
Content-Length: 34
{
"request_data": {
"filters": "all"
}
}{
"reply": {
"action_id": "text",
"endpoints_count": "text"
}
}Retrieve the status of the requested actions according to the action ID.
Required license: Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.
{api_key}
{api_key_id}
Successful response
Bad Request. Got an invalid JSON.
Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.
Unauthorized access. User does not have the required license type to run this API.
Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.
Internal server error. A unified status for API communication type errors.
POST /public_api/v1/actions/get_action_status HTTP/1.1
Host: api-yourfqdn
Authorization: text
x-xdr-auth-id: text
Content-Type: application/json
Accept: */*
Content-Length: 46
{
"request_data": {
"group_action_id": 123456789
}
}{
"reply": {
"data": {
"<agent ID>": "COMPLETED_SUCCESSFULLY"
}
}
}Retrieve files from selected endpoints. You can retrieve up to 20 files, from no more than 10 endpoints.
Response is concatenated using AND condition (OR is not supported).
Offset is the zero-based number of cases from the start of the result set.
Required license: Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.
{api_key}
{api_key_id}
OK
Bad Request
Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.
Unauthorized access. User does not have the required license type to run this API.
Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.
Internal server error. A unified status for API communication type errors.
POST /public_api/v1/endpoints/file_retrieval HTTP/1.1
Host: api-yourfqdn
Authorization: text
x-xdr-auth-id: text
Content-Type: application/json
Accept: */*
Content-Length: 176
{
"request_data": {
"filters": [
{
"field": "endpoint_id_list",
"operator": "in",
"value": [
"text"
]
}
],
"files": {
"windows": [
"text"
],
"linux": [
"text"
],
"macos": [
"text"
]
},
"incident_id": "text"
}
}{
"reply": {
"action_id": "text",
"status": "text",
"endpoints_count": "text"
}
}Isolate one or more endpoints in a single request. Request is limited to 1000 endpoints.
Required license: Cortex Cloud Runtime Security. In Cortex Cloud Posture Security, you need the Cortex Cloud Runtime Security add-on.
{api_key}
{api_key_id}
OK
Bad Request. Got an invalid JSON.
Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, ID, or other invalid authentication parameters.
Unauthorized access. User does not have the required license type to run this API.
Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.
Internal server error. A unified status for API communication type errors.
POST /public_api/v1/endpoints/isolate HTTP/1.1
Host: api-yourfqdn
Authorization: text
x-xdr-auth-id: text
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"request_data": {
"endpoint_id": "<endpoint ID>"
}
}{
"reply": {
"action_id": "<action ID>",
"status": "1",
"endpoints_count": "673"
}
}Get all triage preset information including triage name, platform, description, created by, and triage type.
Required license: In Cortex Cloud Runtime Security, requires the Forensics add-on. Not supported in Cortex Cloud Posture Management.
{api_key}
{api_key_id}
OK
POST /public_api/v1/get_triage_presets HTTP/1.1
Host: api-yourfqdn
Authorization: text
x-xdr-auth-id: text
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"request_data": {}
}OK
{
"reply": {
"triage_presets": [
{
"uuid": "374ecf0457c944c39791e5a60d1a6d24",
"name": "XDR Default",
"os": "MACOS",
"description": "Default macOS Triage configuration included with the XDR Forensics add-on",
"created_by": "user@company.com",
"type": "Online / Offline"
},
{
"uuid": "ea7a5d3ff52d41629e96fbd1d5f68535",
"name": "XDR Default",
"os": "WINDOWS",
"description": "Default Triage configuration included with XDR Forensics add-on",
"created_by": "user@company.com",
"type": "Online / Offline"
}
]
}
}Last updated
Was this helpful?
