<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic XML API for Global Search in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/xml-api-for-global-search/m-p/1232224#M124622</link>
    <description>&lt;P&gt;Hi All,&lt;BR /&gt;I am trying to test XML API for global search . I am trying to use for search security rule with given description .&amp;nbsp;&lt;BR /&gt;ANy help for this.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jun 2025 14:14:32 GMT</pubDate>
    <dc:creator>D.Verma502651</dc:creator>
    <dc:date>2025-06-20T14:14:32Z</dc:date>
    <item>
      <title>XML API for Global Search</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/xml-api-for-global-search/m-p/1232224#M124622</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;I am trying to test XML API for global search . I am trying to use for search security rule with given description .&amp;nbsp;&lt;BR /&gt;ANy help for this.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 14:14:32 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/xml-api-for-global-search/m-p/1232224#M124622</guid>
      <dc:creator>D.Verma502651</dc:creator>
      <dc:date>2025-06-20T14:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: XML API for Global Search</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/xml-api-for-global-search/m-p/1232228#M124623</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1466448807"&gt;@D.Verma502651&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;This is doing a lot of parsing of the configuration directly and isn't a feature or function that you can interact with via the API. You would need to essentially replicate the functionality (probably in a more targeted manner to make it easier) and find any matches. I've included a very basic example below given your desire to look at security rulebase entries:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;ExampleDescription = 'This is a test description'
GetSecRulebase = requests.get("https://myFirewallUrl/api/?type=config&amp;amp;action=get&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/security/rules",headers=headers)
SecRulebase = xmltodict.parse(GetSecRulebase.content)
SecEntries = SecRulebase['response']['result']['rules']['entry']
for SecEntry in SecEntries:
    entryName = SecEntry['@name']
    entryDescription = SecEntry['description']
    if entryDescription == str(ExampleDescription):
        print("Entry '" + str(entryName) + "' matches the ExampleDescription")&lt;/LI-CODE&gt;
&lt;P&gt;You could then obviously take this minimal example and update it to account for whatever you are actually attempting to do.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 15:10:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/xml-api-for-global-search/m-p/1232228#M124623</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2025-06-20T15:10:35Z</dc:date>
    </item>
  </channel>
</rss>

