Enhanced Security Measures in Place:   To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.

Custom App-ID creation via XML-API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Custom App-ID creation via XML-API

L4 Transporter

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?

 

0 REPLIES 0
  • 3088 Views
  • 0 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!