I would like to use uimapi to delete devices from device groups, how do I do that?
20.4.8+ and 23.4.*
<devicegroups> <devicegroup> <id>2</id> <origin/> <active>1</active> <name>UNIX</name> <description/> <query/> <condition/> <cmGroupId>11</cmGroupId> <parentGroupId/> <accountid/> <status>ok</status> <group_type>2</group_type> <parentChanged>0</parentChanged> <variables> <group.name>UNIX</group.name> <group.id>11</group.id> <grp_id>11</grp_id> </variables> </devicegroup> <devicegroup> <id>3</id> <origin/> <active>1</active> <name>Windows</name> <description/> <query/> <condition/> <cmGroupId>3</cmGroupId> <parentGroupId/> <accountid/> <status>ok</status> <group_type>2</group_type> <parentChanged>0</parentChanged> <variables> <group.name>Windows</group.name> <group.id>3</group.id> <grp_id>3</grp_id> </variables> </devicegroup> <devicegroup> <id>64</id> <origin/> <active>1</active> <name>MyGroup</name> <description/> <query/> <condition/> <cmGroupId>32</cmGroupId> <parentGroupId/> <accountid/> <status>ok</status> <group_type>1</group_type> <parentChanged>0</parentChanged> <variables> <group.name>MyGroup</group.name> <group.id>32</group.id> <grp_id>32</grp_id> </variables> </devicegroup> <devicegroup> <id>65</id> <origin/> <active>1</active> <name>test</name> <description/> <query/> <condition/> <cmGroupId>215</cmGroupId> <parentGroupId/> <accountid/> <status>ok</status> <group_type>0</group_type> <parentChanged>0</parentChanged> <variables> <group.name>test</group.name> <group.id>215</group.id> <grp_id>215</grp_id> </variables> </devicegroup> </devicegroups>
<devices> <device> <robot>true</robot> <cs_id>2842</cs_id> <device_id>2</device_id> <csdev_id>D1EBFB7D2448E0E6BC18581504AC276CC</csdev_id> <name>robot1</name> <status>UNAVAILABLE</status> <origin>uim_hub</origin> <os_type>UNIX</os_type> <nimbus_type>1</nimbus_type> <ip>xxx.xxx.xxx.xxx</ip> <cs_type>A</cs_type> </device> <device> <robot>true</robot> <cs_id>2847</cs_id> <device_id>7</device_id> <csdev_id>D255AA574C2D333038556D61507D86BFB</csdev_id> <name>robot2</name> <status>OK</status> <origin>uim_hub2</origin> <os_type>Windows</os_type> <nimbus_type>2</nimbus_type> <ip>xxx.xxx.xxx.xxx</ip> <cs_type>D</cs_type> </device> </devices>
You can learn more here uim-api reference