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.

Add Group Dynamic Queries Using API

We will be writing some scripts to create Groups through the API and would like to base the members of those Groups on Dynamic Query results like you can do through the web interface.

I did take a look at Groups.ps1 but it does not provide any examples for using a Dynamic Query.

I see in the database where individual members of a Group are stored in Orion.ContainerMemberSnapshots even when I Dynamic Query is used.  I did not find where the actual Dynamic Query is stored in the database.

Can anyone help me with the following:

  1. Where is DQ stored in the Orion database?
  2. What API command(s) can be used to add a DQ to a Group?

TIA