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

CPPM REST API question2:how use field filter in "/api/endpoint/mac-address/"

This thread has been viewed 0 times
  • 1.  CPPM REST API question2:how use field filter in "/api/endpoint/mac-address/"

    Posted Jul 13, 2018 11:44 AM

    cppm version is 6.6.8.

    I run "curl -X GET "https://1.1.1.1:443/api/endpoint/mac-address/446ee56726b2" \ " and I get the result:

    {"id":4097190,"mac_address":"446ee56726b2","status":"Known","attributes":{"userId":"1X","Username":"100191"},"_links":{"self":{"href":"https:\/\/1.1.1.1\/api\/endpoint\/4097190"}}}

     

    And when I run "curl -X GET "https://1.1.1.1/api/endpoint?filter=%7B%22Username%22%3A%100191%22%7D&sort=%2Bid&offset=0&limit=25&calculate_count=false" \"

    to use filter "Username" to query, there is wrong. result is :

    "title":"Internal Server Error","status":500,"detail":"Internal error: Invalid metadata for field 'Username' in Identity\\V1\\Rest\\Endpoint\\EndpointResource".

     

    HOW I use the filter?



  • 2.  RE: CPPM REST API question2:how use field filter in "/api/endpoint/mac-address/"

    EMPLOYEE
    Posted Jul 13, 2018 12:03 PM
    This is a bug and was fixed in 6.7.2


  • 3.  RE: CPPM REST API question2:how use field filter in "/api/endpoint/mac-address/"
    Best Answer

    Posted Jul 24, 2018 10:49 AM

    yes.  it works in ver 6.7.4