Skip to content

400 passing device_id list #895

Answered by jshcodes
jshcodes asked this question in Q&A
Jan 25, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @brucelourenco!

You're almost there, the filter string is using the wrong parameter name. (Line 18, device_list should be device_id.)

Change your act_params list of dictionaries to the following and try it again?

[{
    "name": "filter",
    "value": "(device_id:{device_list})"
}]

Replies: 1 comment 2 replies

Comment options

jshcodes
Jan 25, 2023
Maintainer Author

You must be logged in to vote
2 replies
@brucelourenco
Comment options

@jshcodes
Comment options

jshcodes Jan 27, 2023
Maintainer Author

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
API usage General API usage issues and questions hosts Hosts or Host Groups issues and questions
2 participants
Converted from issue

This discussion was converted from issue #894 on January 25, 2023 17:01.