-
Hello,
Do you have an idea ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi @waschoo ! You'll probably want to grab the IDs and then feed them to the appropriate "getXYZPolicies" ( If you add the following around line #68 of this sample: prevent_pol_id = device["device_policies"].get("prevention", {}).get("policy_id", None)
update_pol_id = device["device_policies"].get("sensor_update", {}).get("policy_id", None) You'll have the IDs for both your prevention and sensor update policy as the loop iterates. Use these value to call getPreventionPolicies and getSensorUpdatePolicies respectively. At that point you should have the policy details for the host, and you can add the values you prefer to the Thank you for the question! 😄 |
Beta Was this translation helpful? Give feedback.
Hi @waschoo !
You'll probably want to grab the IDs and then feed them to the appropriate "getXYZPolicies" (
get_policies
) operation. I don't think the settings_hash is what you're looking for.If you add the following around line #68 of this sample:
You'll have the IDs for both your prevention and sensor update policy as the loop iterates. Use these value to call getPreventionPolicies and getSensorUpdatePolicies respectively. At that point you should have the policy details for the host, and…