This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

SWIS Issue - Group Dynamic Query does not get applied

Hi Guys ,

I am trying to create bulk groups on Solarwinds using SWIS python client . I see the group and the dynamic rule gets created successfully on the UI . However, the nodes get added to the group only after i manually "save" the rule by getting each rule. 

Kindly suggest !! 

mvpramod022_0-1585501185631.png

This is the piece of client where i am creating the group :

swis = SwisClient(npm_server, username, password)
swis.invoke('Orion.Container', 'CreateContainer',groupname,'Core',60,0,groupname,True,
[
{'Name': rulename, 'Definition': "filter:/Orion.Nodes[Contains(CustomProperties.NodeCategory,'" + gname +"') AND CustomProperties.NodeLocation="+ nodeloc+" ]"}
]
)