<?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 Unable to get access-rule from FMC API in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/unable-to-get-access-rule-from-fmc-api/m-p/3410884#M923546</link>
    <description>&lt;P&gt;Hey everyone,&lt;/P&gt;
&lt;P&gt;I'm running FMC 6.2.3.2 and I'm unable to get the data of a specific access-rule.&lt;/P&gt;
&lt;P&gt;When I go in the api-explorer to Policy &amp;gt; accesspolicies and do a Get of my access-policies I get all the access-policies UUID's. When I put the UUID of the access-policy in the Container UUID and do a GET of the accessrules I get the list of UUID's of all the rules.&lt;/P&gt;
&lt;P&gt;When I now do a GET on a specific access-rule UUID I get an Error: "description": "Resource not found. Please check the UUID passed in url."&lt;/P&gt;
&lt;P&gt;Is anyone else facing the same issue?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2020 15:57:12 GMT</pubDate>
    <dc:creator>Garfield</dc:creator>
    <dc:date>2020-02-21T15:57:12Z</dc:date>
    <item>
      <title>Unable to get access-rule from FMC API</title>
      <link>https://community.cisco.com/t5/network-security/unable-to-get-access-rule-from-fmc-api/m-p/3410884#M923546</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;
&lt;P&gt;I'm running FMC 6.2.3.2 and I'm unable to get the data of a specific access-rule.&lt;/P&gt;
&lt;P&gt;When I go in the api-explorer to Policy &amp;gt; accesspolicies and do a Get of my access-policies I get all the access-policies UUID's. When I put the UUID of the access-policy in the Container UUID and do a GET of the accessrules I get the list of UUID's of all the rules.&lt;/P&gt;
&lt;P&gt;When I now do a GET on a specific access-rule UUID I get an Error: "description": "Resource not found. Please check the UUID passed in url."&lt;/P&gt;
&lt;P&gt;Is anyone else facing the same issue?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 15:57:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/unable-to-get-access-rule-from-fmc-api/m-p/3410884#M923546</guid>
      <dc:creator>Garfield</dc:creator>
      <dc:date>2020-02-21T15:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get access-rule from FMC API</title>
      <link>https://community.cisco.com/t5/network-security/unable-to-get-access-rule-from-fmc-api/m-p/3678977#M923547</link>
      <description>&lt;P&gt;Hey Everyone,&lt;/P&gt;
&lt;P&gt;I opened a TAC case on this and it's not a bug it's a feature :).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me explain. I was using a nested policy. So in the api explorer I did a GET of all ACP's (access control policy). The access-rules I wanted to query were in a child ACP. So I entered the UUID of the ACP into the container field and did a GET of the access-rules.&lt;/P&gt;
&lt;P&gt;This gives you ALL access-rules. So both the rules from the parent ACP as the rules from the child. The same as when you would click the ACP in the GUI.&lt;/P&gt;
&lt;P&gt;However when you now take the UUID of an access-rule that is part of the parent ACP and do a GET on that you will get an error, because that UUID is not strictly part of the child ACP.&lt;/P&gt;
&lt;P&gt;This makes sense but it's quite unfortunate as it takes quite some extra code from my end to automate this. I need to do a GET on the child ACP and check if there is a parent ACP. Then iterate first through the parent and it's access-rules. Then go to the child and iterate through the rules there and omitting the ones from the parent as they will throw an error.&lt;/P&gt;
&lt;P&gt;I think this is quite cumbersome. If anyone has a better way of doing this kind of GET please let me know.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 09:05:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/unable-to-get-access-rule-from-fmc-api/m-p/3678977#M923547</guid>
      <dc:creator>Garfield</dc:creator>
      <dc:date>2018-08-01T09:05:49Z</dc:date>
    </item>
  </channel>
</rss>

