ebarti / cortex-xdr-client

A python-based API client for Cortex XDR API.

Home Page:https://cortex-xdr-client.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Isolate/Unisolate Endpoint - Endpoint not found

lawiet47 opened this issue · comments

commented

During the invocation of the endpoints_api.isolate_endpoints or endpoints.api.unisolate_endpoints the client returns b'{"reply": {"err_code": 500, "err_msg": "An error occurred while processing XDR public API - No endpoint was found for creating the requested action", "err_extra": "can\'t create group action id for ISOLATE"}}' even though provided endpoint_list is selected directly from the Cortex XDR dashboard``

Python 3.9
API Version 1.7.2

commented

Same thing when submitting the request for just one endpoint with {'request_data': {'endpoint_id': 'EXISTING_ENDPOINT_ID'}}

Hey @lawiet47 are you sure of this? Makew sure you are isolating with the ID, not the Endpoint Name (as their API docs WRONGLY suggest)

commented

It's the endpoint_id in the md5 hash format, obtained from the cortex dashboard

I cannot reproduce the issue

commented

Can you please share the command that you execute? I'm still getting the same error

commented

I'm gonna go ahead and close this issue as this is expected for the endpoint to have the opposite state when performing either the isolate or unisolate.