Open jeisenbath opened 3 months ago
This seems to be some underlying bug with the API. Tested both username formats with two queries:
"SELECT Top 10 Caption FROM Orion.Nodes" - This query works with both username formats. "SELECT Top 10 NodeCaption FROM Cirrus.Nodes" - This query only works with DOMAIN\username format.
DOMAIN\username format is working for me, I am not sure why I found the need to use two \ before. So is this a bug that needs to be submitted with orionsdk?
Not with orionsdk, because the issue isn't with the python (or powershell for that matter), but an underlying issue with SWIS Api (I get the same behavior in SWQL Studio).
I created a Thwack thread to try and get more feedback, and then might open a ticket with support to get more info. https://thwack.solarwinds.com/products/the-solarwinds-platform/f/forum/102741/ncm-query-on-cirrus-nodes-returns-no-data-when-authenticated-as-username-domain
When using the "username@domain" format for the "username" parameter on orion_node_ncm, defining "state: present" will always show the task as changed, and defining "state: absent" will always show the task as not changed, and thus will not remove the node from NCM.
The root issue appears that the get_ncm_node() function does not return the node when using this username format. The module does work with local accounts and with a "DOMAIN\username" format.