Skip to main content
khanchand
Explorer II
October 8, 2024
Solved

Cortex XDR Integration error

  • October 8, 2024
  • 6 replies
  • 3685 views

Hello Community,

 

We are facing an issue in cortex XDR integration error. (Screenshot attached). API has admin rights assigned. Does anyone face same error.

    Best answer by RenuAndh

    Can you try running above curl command removing -d '{}' and check. And also from connector actions try running action "Fetch Incidents" if this runs successful. 

    Also check this curl command works:
    curl -k -X POST https://api-yourfqdn/public_api/v1/incidents/get_incidents -H "x-xdr-auth-id:{API_KEY_ID}" -H "Authorization:{API_KEY}" -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"request_data": {}}'

    6 replies

    RenuAndh
    Staff
    Staff
    October 8, 2024

    HI @khanchand,

    Can you specify Which authentication type you are selecting ?

    khanchand
    khanchandAuthor
    Explorer II
    October 8, 2024

    Hi Renu,

    Its Standard Key. And same is selected in Cortex while creating the key.

    RenuAndh
    Staff
    Staff
    October 8, 2024

    Can you try running this curl command to check with valid credentials:
    curl -X POST https://api-{fqdn}/public_api/v1/distributions/get_versions/ -H "x-xdr-auth-id:{API_KEY_ID}" -H "Authorization:{API_KEY}" -H "Content-Type:application/json" -d '{}'

     

    khanchand
    khanchandAuthor
    Explorer II
    October 8, 2024

    attaching the output screenshot

    RenuAndh
    Staff
    RenuAndhAnswer
    Staff
    October 9, 2024

    Can you try running above curl command removing -d '{}' and check. And also from connector actions try running action "Fetch Incidents" if this runs successful. 

    Also check this curl command works:
    curl -k -X POST https://api-yourfqdn/public_api/v1/incidents/get_incidents -H "x-xdr-auth-id:{API_KEY_ID}" -H "Authorization:{API_KEY}" -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"request_data": {}}'

    khanchand
    khanchandAuthor
    Explorer II
    October 10, 2024

    Hi Renu,

     

    Its working now by generating another API account.