<?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 I am on 6.1.  Sounds like its in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/disable-ftd-subinterface-via-api/m-p/3071855#M1015303</link>
    <description>&lt;P&gt;I am on 6.1. &amp;nbsp;Sounds like its time for an upgrade!&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2017 17:14:19 GMT</pubDate>
    <dc:creator>tmagill_sig</dc:creator>
    <dc:date>2017-06-16T17:14:19Z</dc:date>
    <item>
      <title>Disable FTD Subinterface via API</title>
      <link>https://community.cisco.com/t5/network-security/disable-ftd-subinterface-via-api/m-p/3071851#M1015295</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I'm now to the FMC API, and FTD in general. I have been tasked with creating an automated process to disable a subinterface on an FTD. &amp;nbsp;I am able to pull the subinterfaces, but do not appear to be able to change the state via the API. &amp;nbsp;I have also tried fplogicalinterfaces, but can't seem to pull any data from that. &amp;nbsp;Is this something that simply isn't supported yet? &amp;nbsp;Any recommendations on alternative ways to disable a subinterface?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 14:11:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/disable-ftd-subinterface-via-api/m-p/3071851#M1015295</guid>
      <dc:creator>tmagill_sig</dc:creator>
      <dc:date>2020-02-21T14:11:04Z</dc:date>
    </item>
    <item>
      <title>tmagill_sig,</title>
      <link>https://community.cisco.com/t5/network-security/disable-ftd-subinterface-via-api/m-p/3071852#M1015297</link>
      <description>&lt;P&gt;tmagill_sig,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;For getting the details about the subinterfaces you are using the GET method. To enable or disable the subinterface you should be changing the method for the same URI to PUT. The PUT json data should be something like below:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;post_data = {"type": "SubInterface",&lt;BR /&gt; "vlanId": "50",&lt;BR /&gt; "subIntfId": "50",&lt;BR /&gt; &lt;SPAN style="color: #ff6600;"&gt;"enabled": &lt;STRONG&gt;False&lt;/STRONG&gt;,&lt;/SPAN&gt;&lt;BR /&gt; "MTU": 1500,&lt;BR /&gt; "managementOnly": False,&lt;BR /&gt; "enableDNSLookup": True,&lt;BR /&gt; "enableAntiSpoofing": True,&lt;BR /&gt; "ifname": "subint_vlan_50",&lt;BR /&gt; "name": interface_name,&lt;BR /&gt; "ipv4": {&lt;BR /&gt; "static": {&lt;BR /&gt; "address": ip_address,&lt;BR /&gt; "netmask": netmask,&lt;/P&gt;
&lt;P&gt;"id":[interface id from the get]&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;-Neil&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 16:40:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/disable-ftd-subinterface-via-api/m-p/3071852#M1015297</guid>
      <dc:creator>neipatel</dc:creator>
      <dc:date>2017-06-16T16:40:12Z</dc:date>
    </item>
    <item>
      <title>Thanks for the quick response</title>
      <link>https://community.cisco.com/t5/network-security/disable-ftd-subinterface-via-api/m-p/3071853#M1015299</link>
      <description>&lt;P&gt;Thanks for the quick response!&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;That is exactly what I tried, but I was getting a URL error. &amp;nbsp;I realized during some testing I had changed it to a POST instead of PUT. &amp;nbsp;I fixed that and it resolved the URL error. &amp;nbsp;What I'm seeing now is: &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;{"error":{"category":"FRAMEWORK","messages":[{"description":"Request UUID and data does not match."}],"severity":"ERROR"}}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I'm sending the following PUT&amp;nbsp;to shut down the interface:&lt;/P&gt;
&lt;P&gt;URL:&lt;/P&gt;
&lt;P&gt;https://10.32.2.72/api/fmc_config/v1/domain/e276abec-e0f2-11e3-8169-6d9ed49b625f/devices/devicerecords/7a628088-9f7e-11e6-b3e5-81bddcad0051/subinterfaces/843DC698-7A16-0ed3-0000-188978563388&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Payload:&lt;/P&gt;
&lt;P&gt;{"enabled": false, "id": "843DC698-7A16-0ed3-0000-188978563388"}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I'm pulling the id directly from the subinterface ['id']. &amp;nbsp;Are there other required values i must send even though they aren't changing? &amp;nbsp;I can't find any documentation on a subinterface PUT, only GET.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 16:59:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/disable-ftd-subinterface-via-api/m-p/3071853#M1015299</guid>
      <dc:creator>tmagill_sig</dc:creator>
      <dc:date>2017-06-16T16:59:27Z</dc:date>
    </item>
    <item>
      <title>tmagill_sig,</title>
      <link>https://community.cisco.com/t5/network-security/disable-ftd-subinterface-via-api/m-p/3071854#M1015301</link>
      <description>&lt;P&gt;tmagill_sig,&lt;/P&gt;
&lt;P&gt;The URL you are using looks good. You may be on a version of FMC that does not support subinterface configuration. What is the exact version of FMC you are running. I have attached what API explorer should look like with newer versions of FMC.&lt;/P&gt;
&lt;P&gt;-Neil&lt;IMG src="https://community.cisco.com/legacyfs/online/media/screen_shot_2017-06-16_at_12.51.11_pm.png" class="migrated-markup-image" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 16:59:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/disable-ftd-subinterface-via-api/m-p/3071854#M1015301</guid>
      <dc:creator>neipatel</dc:creator>
      <dc:date>2017-06-16T16:59:28Z</dc:date>
    </item>
    <item>
      <title>I am on 6.1.  Sounds like its</title>
      <link>https://community.cisco.com/t5/network-security/disable-ftd-subinterface-via-api/m-p/3071855#M1015303</link>
      <description>&lt;P&gt;I am on 6.1. &amp;nbsp;Sounds like its time for an upgrade!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 17:14:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/disable-ftd-subinterface-via-api/m-p/3071855#M1015303</guid>
      <dc:creator>tmagill_sig</dc:creator>
      <dc:date>2017-06-16T17:14:19Z</dc:date>
    </item>
    <item>
      <title>tmagill_sig,</title>
      <link>https://community.cisco.com/t5/network-security/disable-ftd-subinterface-via-api/m-p/3071856#M1015304</link>
      <description>&lt;P&gt;tmagill_sig,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Yes, upgrade to 6.2 would be needed for the subinterface CRUD on the APIs.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Neil&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 17:16:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/disable-ftd-subinterface-via-api/m-p/3071856#M1015304</guid>
      <dc:creator>neipatel</dc:creator>
      <dc:date>2017-06-16T17:16:30Z</dc:date>
    </item>
    <item>
      <title>Thanks!  Also, not sure if it</title>
      <link>https://community.cisco.com/t5/network-security/disable-ftd-subinterface-via-api/m-p/3071857#M1015305</link>
      <description>&lt;P&gt;Thanks! &amp;nbsp;Also, not sure if it matters, but i'm looking at object model in the 6.2.1 docs and it still only shows GET for subinterfaces... &amp;nbsp;That may need to be updated to match the explorer.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;One other question that will be relevant after I upgrade. &amp;nbsp;Since this is an HA pair and the container on the PUT is a device, not a devicegroup, do i need to PUT it to both members of the group?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 17:20:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/disable-ftd-subinterface-via-api/m-p/3071857#M1015305</guid>
      <dc:creator>tmagill_sig</dc:creator>
      <dc:date>2017-06-16T17:20:59Z</dc:date>
    </item>
    <item>
      <title>I have the same issue using PUT</title>
      <link>https://community.cisco.com/t5/network-security/disable-ftd-subinterface-via-api/m-p/3175800#M1015306</link>
      <description>&lt;P&gt;Running 6.2.1&lt;BR /&gt;As a test, I try changing the name of an Access Control Policy and always get the same&amp;nbsp;error:&lt;/P&gt;&lt;P&gt;{"error": {"messages": [{"description": "Request UUID and data does not match."}], "category": "FRAMEWORK", "severity": "ERROR"}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;url = &lt;A href="https://192.168.56.20/api/fmc_config/v1/domain/e276abec-e0f2-11e3-8169-6d9ed49b625f/policy/accesspolicies/0800275D-1AA7-0ed3-0000-030064771126" target="_blank"&gt;https://192.168.56.20/api/fmc_config/v1/domain/e276abec-e0f2-11e3-8169-6d9ed49b625f/policy/accesspolicies/0800275D-1AA7-0ed3-0000-030064771126&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;payload = {'name': 'test2'}&lt;/P&gt;&lt;P&gt;header = {'x-auth-access-token': token, 'Content-Type': 'application/json'}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same error with:&lt;/P&gt;&lt;P&gt;results = requests.put(url, json=payload, headers=header, verify=False)&lt;BR /&gt;and&lt;BR /&gt;results = requests.put(url, data=json.dumps(payload), headers=header, verify=False)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could it be the same problem as the sub-interface disable issue?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 10:00:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/disable-ftd-subinterface-via-api/m-p/3175800#M1015306</guid>
      <dc:creator>bbosch4210</dc:creator>
      <dc:date>2017-08-25T10:00:05Z</dc:date>
    </item>
  </channel>
</rss>

