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.

Creating Subgroups via SDK

Hi,

I am trying to create an subgroup via SDK. Therefore I use the SWQL-Studio.

For testing purposes I created a group 'Test' via WebGui this Container/Group has the ID 23.

Now I want to create an Subgroup:
pastedImage_0.png

But I dont know how to fill the "Name" and "Definition" tag at memberDefinitions.

<ArrayOfMemberDefinitionInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.solarwinds.com/2008/Orion"><MemberDefinitionInfo><Name>???</Name><Definition>???</Definition></MemberDefinitionInfo></ArrayOfMemberDefinitionInfo>

Parents
  • You can use the following. I have used it in PowerShell scripts to create groups with no member definitions and have tested it with the SDK using your method.

    The member definition isn't linking this child group to the parent group - it defines the members of the group you are creating (e.g. nodes, groups, dynamic queries, etc). In your instance, what objects would be a member of TestSub1. The below tells SolarWinds there are no members of the group and you will need to add the group members separately.

    <ArrayOfMemberDefinitionInfo xmlns='schemas.solarwinds.com/.../Orion' />
  • Exactly what I needed!

Reply Children
No Data