Security

Reply
Occasional Contributor I

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

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?

Guru Elite

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

This is a bug and was fixed in 6.7.2

| Tim Cappalli | Aruba Security | @timcappalli | timcappalli.me |

NOTE: Answers and views expressed by me on this forum are my own and not necessarily the position of Aruba or Hewlett Packard Enterprise.
Occasional Contributor I

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

yes.  it works in ver 6.7.4

Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: