Security

last person joined: yesterday 

Forum to discuss Enterprise security using HPE Aruba Networking NAC solutions (ClearPass), Introspect, VIA, 360 Security Exchange, Extensions, and Policy Enforcement Firewall (PEF).
Expand all | Collapse all

How do you extract full endpoint details for all endpoints via API?

This thread has been viewed 1 times
  • 1.  How do you extract full endpoint details for all endpoints via API?

    Posted Dec 21, 2017 11:01 AM

    I am able extract endpoint details from the API for a single endpoint if I know the IP address, but I am searching for a way to pull this data in JSON format for all endpoints.  Here is the URL I am using for a single endpoint (Works well for 1):

     

    https://[CPPM URL]/async_netd/deviceprofiler/endpoints/10.20.30.40

     

    We are extracting this data to feed a SIEM, and hope to use it to collect network inventory data.

     

    Thank you,

     

    Jason



  • 2.  RE: How do you extract full endpoint details for all endpoints via API?

    EMPLOYEE
    Posted Dec 21, 2017 11:04 AM
    You cannot pull an entire data dump in a single API call. You would need to page through the results from the REST API in your script.


  • 3.  RE: How do you extract full endpoint details for all endpoints via API?

    Posted Dec 21, 2017 11:12 AM

    Can you help me extract the list of IP addresses or MAC addresses to page through?  I am very new to CPPM, and have read the API guide, but am still having problems.

     

    Thanks



  • 4.  RE: How do you extract full endpoint details for all endpoints via API?

    EMPLOYEE
    Posted Dec 21, 2017 11:15 AM
    I’m not sure I’m understanding your question. You’d script against /api/endpoint and page through the results until you get to the end.


  • 5.  RE: How do you extract full endpoint details for all endpoints via API?

    Posted Dec 21, 2017 11:19 AM

    If I go to https://[CPPM URL]/api/endpoint I get an error:

     

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

    I am trying to get a list of the IP addresses or MAC addresses to iterate through to pull all the endpoint information.



  • 6.  RE: How do you extract full endpoint details for all endpoints via API?

    EMPLOYEE
    Posted Dec 21, 2017 11:21 AM
    You need to authenticate to the API via OAuth 2.0.

    What scripting language are you using?


  • 7.  RE: How do you extract full endpoint details for all endpoints via API?

    Posted Dec 21, 2017 11:23 AM

    Powershell, or Chrome



  • 8.  RE: How do you extract full endpoint details for all endpoints via API?

    EMPLOYEE
    Posted Dec 21, 2017 11:25 AM
    Ah, sorry. I don't have any PowerShell examples. You may want to work with your ClearPass partner if you're not familiar with working with REST APIs.