How to update the sensor version on an update policy #52
-
I want to programmatically update the sensor version of an update policy that has auto updates turned off. The use cases is as follows:
Q1: Do I use updateSensorUpdatePoliciesV2 or performSensorUpdatePoliciesAction? I've tried to format the BODY string based off the output the JSON blob printed out from the getSensorUpdatePoliciesV2 response, but no luck. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
These two operations perform different but similar functions.
|
Beta Was this translation helpful? Give feedback.
These two operations perform different but similar functions.
performSensorUpdatePolicyAction is taking action on the policy, such as enabling, or disabling it. This operation can be executed against a list of IDs, with the body payload also supporting additional parameters that can be passed to the requested action. updateSensorUpdatePoliciesV2 updates sensor update policies by specifying the ID of the policy and what details to update. This operation also provides additional support for uninstall protection. Based upon this detail, I believe you will want to look at updateSensorUpdatePoliciesV2.
Here are the generic body payload examples for these two operations: