Query Endpoint by Hostname

How do I build an endpoint query by hostname match?

I'm trying to figure out how to query Central via API, specifying the hostname of the device.

This seems possible according to the documentation: https://developer.sophos.com/docs/endpoint-v1/1/routes/endpoints/get

However, when I try to construct a query in the tool using any criteria, no code result is shown, just a blank page (using Safari 14.0.3). See below.

I successfully built a query to return a specific fields using the /endpoints/{endpointID} portion of the tool, here: https://developer.sophos.com/docs/endpoint-v1/1/routes/endpoints/%7BendpointId%7D/get

How do I build an endpoint query by hostname match?

Parents
  • FormerMember
    0 FormerMember

    to clarify - you want the query to the api to provide an endpoint's hostname and the api to only return data for that hostname regardless of the endpoint ID?

    In other words, I have hostname (MyComputer) that has endpointID (555444555444) and you want to send in MyComputer and get the data from the record 555444555444?

Reply
  • FormerMember
    0 FormerMember

    to clarify - you want the query to the api to provide an endpoint's hostname and the api to only return data for that hostname regardless of the endpoint ID?

    In other words, I have hostname (MyComputer) that has endpointID (555444555444) and you want to send in MyComputer and get the data from the record 555444555444?

Children