Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
carlosfuch
Explorer

HE Management SDK response is not as expected

I’ve been testing the Harmony Endpoint Management Python SDK and expected to receive a list with metadata only for Threat Prevention policies when running the following code:
 
rules_metadata_threat_prevention_res = he.policy_general_api.get_all_rules_metadata(
    header_params={ "x-mgmt-run-as-job": 'on'},
    query_params={"ruleFamily": 'Threat Prevention'})

However, I received metadata for all policies across all families, even though I specified the ruleFamily in the query_params. I’ve reviewed the code multiple times but can’t seem to find any issues.

Could someone help me identify if there’s a mistake in my code, or is this an SDK issue that I should report on GitHub?

0 Kudos
2 Replies
PhoneBoy
Admin
Admin

It could also be an API issue.
Reporting the issue on GitHub is probably your best bet, though.

0 Kudos
Itamar_Tubul
Employee
Employee

We’ve tested the filter in our lab, and it appears to be working as expected.

After reviewing your code, we noticed there may be some unusual characters (such as non-standard spaces) that could potentially interfere with validation:

 

Screenshot 2024-10-27 at 17.12.16.png

Could you please try cleaning up these characters in your code and retrying? If this doesn’t resolve the issue, feel free to open a Service Request or GitHub issue, and we’ll be happy to assist further.

 

Thanks,

Itamar 

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events