Using API to retrieve tamper protection passwords

Hi, is there any guidance on how I can use the API in order to download a csv file containing all of our tamper protection passwords stored in central?

Thanks.

  • FormerMember
    0 FormerMember

    Hi Ken,

    Please open this link>API documentation

    developer.sophos.com/apis

    -> as per my initial check, its not possible. Pulling tamper passwords in central via API is not on the list of things you can do. 

    The best way to approach this is to create a request in https://ideas.sophos.com/ for this feature to be included on future sophos updates as that link is being monitored by our DEV team.

    Regards,

    Fernan Tutor

    If this post solves your question, please use the "Verify Answer" button.

  • FormerMember
    +1 FormerMember

    Hi

    Let me correct my previous reply on this thread.

    The following can be used as a starting point when querying for Tamper Protection passwords.

     

    $headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"

    $headers.Add("X-Tenant-ID", "<Tenant-ID>")

    $headers.Add("Authorization", "Bearer <Authorization Token> ")

     

    $response = Invoke-RestMethod 'https://api-<CentralRegion>.central.sophos.com/endpoint/v1/endpoints/<EndpointID>/tamper-protection' -Method 'GET' -Headers $headers

    $response | ConvertTo-Json

     

     

    This was taken from the following page in our Endpoint API documentation. It will take some re-working with variables to change this so that it repeats for each of the <EndpointID> values, however, you can get a full list of endpoints at your site using this API Query.

    Please let us know if you have any other questions.

    Regards,

    Fernan Tutor