You can use REST to manipulate many functions in DX NetOps
I need to programmatically manage a group in DX NetOps
.
I need to delete devices from a group that were programmatically added to the group via REST and not with a rule.
I've reviewed the following links below. Add isn't the issue, it's the Delete.
There doesn't appear to be a way to remove a device in a group by it's DeviceID.
How to list all members of a group in DX NetOps.
DX NetOps 22.2.x
Yes, there is a method to use REST to add or delete items from a group.
Items being devices/interfaces/etc, NOT subgroups or references to other groups.
Basically a POST or DELETE to
http://YOUR-PC:8181/pc/center/webservice/groups/groupItemId/ITEMID/items
(replace ITEMID with the itemid if the device you wish to delete)
...
To see all groups do a GET
http://YOUR-CAPC:8181/pc/center/webservice/groups/groupPath/All%20Groups
+++
curl -kv -u admin -X GET -H 'Content-type: application/xml' http://YOUR-CAPC:8181/pc/center/webservice/groups/groupPath/All%20Groups
+++
From the results we got
Now to see a single group using the id= from the above GET
http://YOUR-CAPC:8181/pc/center/webservice/groups/groupItemId/6362/
+++
curl -kv -u admin -X GET -H 'Content-type: application/xml' http://YOUR-CAPC:8181/pc/center/webservice/groups/groupItemId/6362/
+++
To see the members of this group GET
http://YOUR_PC:8181/pc/center/webservice/groups/groupItemId/6362/items
+++
curl -kv -u admin -X GET -H 'Content-type: application/xml' http://YOUR-CAPC:8181/pc/center/webservice/groups/groupItemId/6362/items
+++
http://PC:8181/pc/center/rest/groups/documentation (replace PC with your PC hostname)
https://PC:8182/pc/center/rest/groups/documentation
...