Skip to content

unable to add a host group to a sensor update policy #695

Answered by jshcodes
pk-actzero asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @pk-actzero -

Adding a host group will need to be done using the performSensorUpdatePoliciesAction operation.

Since we're using the Uber class, we will not have the advantage of body payload abstraction (or action_parameter abstraction) so our syntax will be slightly more complex.

from falconpy import APIHarness

falcon = APIHarness(client_id="API_CLIENT_ID_HERE",
                    client_secret="API_CLIENT_SECRET_HERE"
                    )

BODY = {
    "action_parameters": [
        {
            "name": "group_id",
            "value": "HOST_GROUP_ID_HERE"
        }
    ],
    "ids": ['SENSOR_POLICY_ID_HERE']
}

response = falcon.command("performSensorUpdatePoliciesAction", actio…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@jshcodes
Comment options

Answer selected by pk-actzero
Comment options

You must be logged in to vote
4 replies
@jshcodes
Comment options

@pk-actzero
Comment options

@jshcodes
Comment options

@pk-actzero
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
sensor update Sensor Update Policy issues and questions uber Questions related to Uber Class usage Flight Control Flight Control (MSSP) issues and questions
2 participants