1 Reply Latest reply on Dec 6, 2017 9:38 AM by aaron.weisz-koves@macquarie.com

    Using Custom Properties with orionsdk group creation

    aaron.weisz-koves@macquarie.com

      I'm trying to create groups using the Python orionsdk sample code.

       

      It works fine for me when I'm using default node properties (e.g. Vendor), but when I use a custom property name the dynamic query is defaulting to AssetTag.

       

      i.e. This works fine

      # group members
      [

         {'Name': 'Windows Devices', 'Definition': "filter:/Orion.Nodes[Vendor='Windows']"}

      ]

      )

       

      And this doesn't - it results in a dynamic query for AssetTag='core'

       

      # group members
      [

         {'Name': 'Core network devices', 'Definition': "filter:/Orion.Nodes[NMS_Role='core']"}

      ]

      )

       

      Is there a limitation with the CreateContainer method that means I can't use custom properties, or is there another explanation?