Is there a way via api to copy a site reference from one folder (default VNA into custom group)?
There is a need of creating smaller groups hence need to use the copy api to distribute sites from VNA folder to custom folder group.
All supported NetOps Performance Management releases
Basically, you should be able to export groups before creating a group.From there you would need to populate it with items either directly or with rules.
To distribute sites from a VNA folder to a custom folder group, you can use the Groups Web Service to create dynamic group rules using the MEMBER_OF operator. This creates a custom group that mirrors members of the specified source group.
Use the following GET request to retrieve the groupItemId (Group ID) for the source folder.
Endpoint: GET http://####:####/pc/center/webservice/groups/groupPath/All%20Groups%2FVNA%20Domains%2F####%2FSites%2F####/groupItemId
Use a POST request with a MEMBER_OF rule to populate the custom group with items from the source group.
Endpoint: POST http://####:####/pc/center/webservice/groups/false/false
Headers: Content-Type: application/xml
Request Body:
<GroupTree path="/All Groups/MyCustomGroup">
<Group name="MyNewSiteGroup" desc="Copy of VNA site" inherit="true" type="custom group">
<Rules allowDeletes="false" saveRules="true">
<Rule add="device" name="Add from VNA Site">
<Match>
<Compare readOnly="true" using="MEMBER_OF">
<Property name="ItemID" type="device"/>
<Value reference="/All Groups/VNA/SiteName">SITE_GROUP_ID</Value>
</Compare>
</Match>
</Rule>
</Rules>
</Group>
</GroupTree>