Posted on 07-27-2017 06:54 PM
Hi guys,
Am trying to create Smart Group over curl with the following attributes.
However, its not as expected because of the missing bracket.
How do i get bracket included in xml?
Thanks
<?xml version="1.0" encoding="UTF-8"?>
<computer_group>
<name>Test_xml</name>
<is_smart>true</is_smart>
<criteria>
<criterion>
<name>Computer Group</name>
<priority>0</priority>
<and_or>or</and_or>
<search_type>member of</search_type>
<value>Z-Google Chrome Install</value>
</criterion>
<criterion>
<name>Application Title</name>
<priority>1</priority>
<and_or>and</and_or>
<search_type>is</search_type>
<value>Google Chrome.app</value>
</criterion>
<criterion>
<name>Application Version</name>
<priority>2</priority>
<and_or>and</and_or>
<search_type>is not</search_type>
<value>60.0.3112.78</value>
</criterion>
</criteria>
</computer_group>
Solved! Go to Solution.
Posted on 07-27-2017 09:43 PM
Found a way to get the xml of existing smart groups to see the xml.
curl -skfu username:password https://yourjss:8443/JSSResource/computergroups/id/<group id>
Posted on 07-27-2017 09:43 PM
Found a way to get the xml of existing smart groups to see the xml.
curl -skfu username:password https://yourjss:8443/JSSResource/computergroups/id/<group id>