- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
06-29-2018 04:21 PM
Hello Gurus,
I am working on a project to automate the creation of Custom App-IDs using the XML-API.
I am following the guidance on this page: https://www.paloaltonetworks.com/documentation/71/pan-os/xml-api/get-started-with-the-pan-os-xml-api...
to determine the correct xpath ((/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/application/entry[@name='BlueIris']/signature))
The build seems fairly straight-forward:
<request cmd="edit" obj="/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/application/entry[@name='BlueIris']" cookie="8250537722113679"> <entry name="BlueIris"> <default> <port> <member>tcp/80</member> </port> </default> <subcategory>photo-video</subcategory> <category>media</category> <technology>client-server</technology> <risk>1</risk> <parent-app>web-browsing</parent-app> <signature> <entry name="UI2"> <and-condition> <entry name="And Condition 1"> <or-condition> <entry name="Or Condition 1"> <operator> <pattern-match> <pattern>BlueIris </pattern> <context>http-rsp-headers</context> </pattern-match> </operator> </entry> </or-condition> </entry> </and-condition> <scope>session</scope> <order-free>yes</order-free> </entry> </signature> <consume-big-bandwidth>yes</consume-big-bandwidth> <file-type-ident>yes</file-type-ident> <virus-ident>yes</virus-ident> <data-ident>yes</data-ident> </entry> </request>
I'm just curious if anyone on live has done a similar project and can help me understand any gotchas?
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!