<?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 FMC API - obtain interface IP addresses in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/fmc-api-obtain-interface-ip-addresses/m-p/3735625#M1021077</link>
    <description>&lt;P&gt;I am having a look at the FMC API via API Explorer but I can't find where an interfaces IP address is? If I go to "object/interfaceobjects", here is an example of Response text if I do a GET:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"items": [&lt;BR /&gt; {&lt;BR /&gt; "name": "inside",&lt;BR /&gt; "id": "8ce5bde6-xxx",&lt;BR /&gt; "type": "SecurityZone",&lt;BR /&gt; "links": {&lt;BR /&gt; "self": "&lt;A href="https://10.1.1.1/api/fmc_config/v1/domain/e276abec-xxx/object/securityzones/8ce5bde6-xxx" target="_blank"&gt;https://10.1.1.1/api/fmc_config/v1/domain/e276abec-xxx/object/securityzones/8ce5bde6-xxx&lt;/A&gt;",&lt;BR /&gt; "parent": "&lt;A href="https://10.1.1.1/api/fmc_config/v1/domain/e276abec-xxx/object/interfaceobjects" target="_blank"&gt;https://10.1.1.1/api/fmc_config/v1/domain/e276abec-xxx/object/interfaceobjects&lt;/A&gt;"&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I try to put in a unique identifier of &lt;SPAN&gt;8ce5bde6-&lt;/SPAN&gt;&lt;SPAN&gt;xxx&amp;nbsp;&lt;/SPAN&gt;into the query, I get this as Response Text:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt; "error": {&lt;BR /&gt; "category": "FRAMEWORK",&lt;BR /&gt; "messages": [&lt;BR /&gt; {&lt;BR /&gt; "description": "Only GET listing is supported for this resource. GET by id is not supported."&lt;BR /&gt; }&lt;BR /&gt; ],&lt;BR /&gt; "severity": "ERROR"&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone know how to get an interfaces IP address via the API?&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Mark&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2020 16:24:41 GMT</pubDate>
    <dc:creator>cyodesigns</dc:creator>
    <dc:date>2020-02-21T16:24:41Z</dc:date>
    <item>
      <title>FMC API - obtain interface IP addresses</title>
      <link>https://community.cisco.com/t5/network-security/fmc-api-obtain-interface-ip-addresses/m-p/3735625#M1021077</link>
      <description>&lt;P&gt;I am having a look at the FMC API via API Explorer but I can't find where an interfaces IP address is? If I go to "object/interfaceobjects", here is an example of Response text if I do a GET:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"items": [&lt;BR /&gt; {&lt;BR /&gt; "name": "inside",&lt;BR /&gt; "id": "8ce5bde6-xxx",&lt;BR /&gt; "type": "SecurityZone",&lt;BR /&gt; "links": {&lt;BR /&gt; "self": "&lt;A href="https://10.1.1.1/api/fmc_config/v1/domain/e276abec-xxx/object/securityzones/8ce5bde6-xxx" target="_blank"&gt;https://10.1.1.1/api/fmc_config/v1/domain/e276abec-xxx/object/securityzones/8ce5bde6-xxx&lt;/A&gt;",&lt;BR /&gt; "parent": "&lt;A href="https://10.1.1.1/api/fmc_config/v1/domain/e276abec-xxx/object/interfaceobjects" target="_blank"&gt;https://10.1.1.1/api/fmc_config/v1/domain/e276abec-xxx/object/interfaceobjects&lt;/A&gt;"&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I try to put in a unique identifier of &lt;SPAN&gt;8ce5bde6-&lt;/SPAN&gt;&lt;SPAN&gt;xxx&amp;nbsp;&lt;/SPAN&gt;into the query, I get this as Response Text:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt; "error": {&lt;BR /&gt; "category": "FRAMEWORK",&lt;BR /&gt; "messages": [&lt;BR /&gt; {&lt;BR /&gt; "description": "Only GET listing is supported for this resource. GET by id is not supported."&lt;BR /&gt; }&lt;BR /&gt; ],&lt;BR /&gt; "severity": "ERROR"&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone know how to get an interfaces IP address via the API?&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Mark&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 16:24:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/fmc-api-obtain-interface-ip-addresses/m-p/3735625#M1021077</guid>
      <dc:creator>cyodesigns</dc:creator>
      <dc:date>2020-02-21T16:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: FMC API - obtain interface IP addresses</title>
      <link>https://community.cisco.com/t5/network-security/fmc-api-obtain-interface-ip-addresses/m-p/3735691#M1021092</link>
      <description>&lt;P&gt;Answering myself:&lt;BR /&gt;In API-Explorer go to "Devices"&lt;BR /&gt;Click on devices/devicerecords&lt;BR /&gt;Run GET&lt;BR /&gt;Obtain the UUID of the device whose Interface of the IP address you want to know.&lt;BR /&gt;Put the UUID of this device into the "Container UUID"&lt;BR /&gt;Click GET next to physicalinteraces&lt;BR /&gt;Obtain the interface UUID you require then put that UUID into the filter box to the right&lt;BR /&gt;Click GET&lt;BR /&gt;Then if you assigned an IP on that interface you should see something like this in the Response Text:&lt;BR /&gt;{&lt;BR /&gt; "metadata": {&lt;BR /&gt; "timestamp": 1524828336620,&lt;BR /&gt; "domain": {&lt;BR /&gt; "name": "Global",&lt;BR /&gt; "id": "e276abec-xxx"&lt;BR /&gt; }&lt;BR /&gt; },&lt;BR /&gt; "links": {&lt;BR /&gt; "self": "&lt;A href="https://10.232.6.65/api/fmc_config/v1/domain/e276abec-xxx/devices/devicerecords/e35fe18e-xxx/physicalinterfaces/6CB2AE1E-xxx" target="_blank"&gt;https://10.1.1.2/api/fmc_config/v1/domain/e276abec-xxx/devices/devicerecords/e35fe18e-xxx/physicalinterfaces/6CB2AE1E-xxx&lt;/A&gt;"&lt;BR /&gt; },&lt;BR /&gt; "type": "PhysicalInterface",&lt;BR /&gt; "mode": "NONE",&lt;BR /&gt; "hardware": {&lt;BR /&gt; "duplex": "AUTO",&lt;BR /&gt; "speed": "AUTO"&lt;BR /&gt; },&lt;BR /&gt; "enabled": true,&lt;BR /&gt; "MTU": 1500,&lt;BR /&gt; "managementOnly": false,&lt;BR /&gt; "securityZone": {&lt;BR /&gt; "id": "6c1f9bce-xxx",&lt;BR /&gt; "type": "SecurityZone"&lt;BR /&gt; },&lt;BR /&gt; "ifname": "inside",&lt;BR /&gt; "fragmentReassembly": false,&lt;BR /&gt; "enableDNSLookup": false,&lt;BR /&gt; "enableAntiSpoofing": false,&lt;BR /&gt; "ipv4": {&lt;BR /&gt; "static": {&lt;BR /&gt; "address": "10.1.1.1",&lt;BR /&gt; "netmask": "24"&lt;BR /&gt; }&lt;BR /&gt; },&lt;BR /&gt; "ipv6": {&lt;BR /&gt; "enforceEUI64": false,&lt;BR /&gt; "enableIPV6": false,&lt;BR /&gt; "reachableTime": 0,&lt;BR /&gt; "enableRA": true,&lt;BR /&gt; "raLifeTime": 1800,&lt;BR /&gt; "raInterval": 200,&lt;BR /&gt; "enableAutoConfig": false,&lt;BR /&gt; "enableDHCPAddrConfig": false,&lt;BR /&gt; "enableDHCPNonAddrConfig": false,&lt;BR /&gt; "dadAttempts": 1,&lt;BR /&gt; "nsInterval": 1000&lt;BR /&gt; },&lt;BR /&gt; "name": "GigabitEthernet1/3",&lt;BR /&gt; "description": "Connected to server xxx",&lt;BR /&gt; "id": "6CB2AE1E-xxx"&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 15:23:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/fmc-api-obtain-interface-ip-addresses/m-p/3735691#M1021092</guid>
      <dc:creator>cyodesigns</dc:creator>
      <dc:date>2018-10-30T15:23:27Z</dc:date>
    </item>
  </channel>
</rss>

