Skip to content
Discussion options

You must be logged in to vote

This looks to be a formatting issue in the payload for the second API operation. We're setting the value of ids to be response['body'], but this is not a list, it's a dictionary. If we want to pass the return from our first API call to the second, we need to pass the resources array.

BODY = {
         "action_parameters": [
        {
            "name": "filter",
            "value": f"product_type:'{os}'"
        }
        ],
        "ids": response['body']['resources']
}

I'm a little confused as to why we're using the Uber Class to perform the second call. Since we are already working with the Host Group Service Class (the object named falcon), you should be able to execute the followin…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jshcodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
hosts Hosts or Host Groups issues and questions SDK usage General SDK usage issues and questions
2 participants