Developer

last person joined: 5 days ago 

Expand all | Collapse all

Access tracker summary api to get response of summary details using Mac address

This thread has been viewed 2 times
  • 1.  Access tracker summary api to get response of summary details using Mac address

    Posted Oct 29, 2019 04:18 AM
      |   view attached

    HI 

    can we call a api to get summary of device for example system posture status 

     

    i have screenshots which will clear my question



  • 2.  RE: Access tracker summary api to get response of summary details using Mac address

    MVP GURU
    Posted Oct 29, 2019 05:28 AM

    Hi,

     

    Do you have try to use "/insight/endpoint/mac/{mac} " API call ? (with mac the address mac of the device

     

    There is the following info :

     Endpoint {
    mac (string, optional): MAC Address of the endpoint,
    ip (string, optional): IP Address of the endpoint,
    user (string, optional): Username of the endpoint,
    domain (string, optional): Domain of the endpoint,
    roles (object, optional): Roles list of the endpoint,
    spt (string, optional) = ['HEALTHY' or 'CHECKUP' or 'TRANSITION' or 'QUARANTINE' or 'INFECTED' or 'UNKNOWN']: System posture token of the endpoint,
    device_category (string, optional): Device category of the endpoint,
    device_family (string, optional): Device family of the endpoint,
    device_name (string, optional): Device name of the endpoint,
    updated_at (string, optional): Time at which the endpoint is updated,
    is_online (boolean, optional): Flag indicating if the endpoint is online
    } 

     

     



  • 3.  RE: Access tracker summary api to get response of summary details using Mac address

    Posted Oct 29, 2019 05:39 AM

    can you provide that complete url so that i can convert it into curl and call it through linux shell



  • 4.  RE: Access tracker summary api to get response of summary details using Mac address

    MVP GURU
    Posted Oct 29, 2019 06:10 AM
    @IP-CPPM/api/insight/endpoint/mac/00:A0:B0:C0:D0:E0

    No sure about the format of address mac

     

    you can look on api-docs ( @IP-CPPM/api-docs )



  • 5.  RE: Access tracker summary api to get response of summary details using Mac address

    Posted Oct 29, 2019 06:30 AM

    curl -u '*****':'****' https://ldn1nacv.ebrd.com/tipsapi/config/read/Endpoint/equals?macAddress=4cbc4882460e

     

    earlier i am  using like that to read enpoint details and its working

     

    Now using what you suggest in simillar fashion

    curl -u '|**':'***' https://ldn1nacv.ebrd.com/tipsapi/insight/Endpoint/equals?macAddress=4cbc4882460e its not worked for me



  • 6.  RE: Access tracker summary api to get response of summary details using Mac address

    MVP GURU
    Posted Oct 29, 2019 07:14 AM

    remove tips on the URL and don't use ?equal....



  • 7.  RE: Access tracker summary api to get response of summary details using Mac address

    Posted Oct 31, 2019 06:46 AM

     is it  a tips api  because it redirected to somewhere else .

     

    i want to fetch below detatils :

    i think you got my question 

    Under summary-> system posture status -> "healthy" or "unhealthy"



  • 8.  RE: Access tracker summary api to get response of summary details using Mac address

    Posted Nov 01, 2019 07:50 AM

    {"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html","title":"Forbidden","status":403,"detail":"Access denied"}

     

     

    getting this error but through gui able to acces



  • 9.  RE: Access tracker summary api to get response of summary details using Mac address

    MVP GURU
    Posted Nov 02, 2019 06:49 AM

    Hi,

     

    All APi call, use /api on the URL for ClearPass ...

    Do you have look the api docs ? ( https://IP-CPPM/api-docs/ )



  • 10.  RE: Access tracker summary api to get response of summary details using Mac address

    Posted Nov 06, 2019 01:36 AM

    Big thanks to you your api is working but still having some problem to use this i need to generate some  token/bearer id after that i am able to use those api using token authentication

     

     

    is there any way to call those api without having any token key  



  • 11.  RE: Access tracker summary api to get response of summary details using Mac address

    MVP GURU
    Posted Nov 06, 2019 02:32 AM

    @prabhat kumar wrote:

    Big thanks to you your api is working but still having some problem to use this i need to generate some  token/bearer id after that i am able to use those api using token authentication

     

     

    is there any way to call those api without having any token key  


    Yes, i think, we can continue on the other topic -> https://community.arubanetworks.com/t5/Developer-Community/Api-call-without-token/m-p/616821#M409 about token...



  • 12.  RE: Access tracker summary api to get response of summary details using Mac address

    Posted Nov 06, 2019 07:01 AM
      |   view attached
    Is it possible to get the device Onguard Health info (screenshot attached) as well through API. The current API gives the below response. I need further details as to why the posture is unknown/unhealthy. Query: curl -X GET -m 30 -v -k "https://CPPM-server/api/insight/onguard/mac/e47fb21a9092" -H "Authorization: Bearer 5e5........................." Response: {"mac":"e47fb21a9092","ip":"x.x.x.x","user":"5240","domain":"abc.com","roles":["Corporate Wired","Known","[Machine Authenticated]"],"spt":"UNKNOWN","device_category":"Computer","device_family":"Windows","device_name":"Windows 7","is_online":true,"updated_at":"2019-11-06T11:36:49Z"}