<?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 API REST FXOS chassis 9300 or 4100 Firepower in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/api-rest-fxos-chassis-9300-or-4100-firepower/m-p/3031003#M1006677</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I was reading the below documentation about API REST of chassis (FXOS):&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developer.cisco.com/site/ssp/firepower/&amp;nbsp;" target="_blank"&gt;https://developer.cisco.com/site/ssp/firepower/&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;But I haven't found more information (only it is mentioned at&amp;nbsp;&lt;A href="http://www.cisco.com/c/en/us/td/docs/security/firepower/fxos/fxos211/cli-config/b_CLI_ConfigGuide_FXOS_211/introduction_to_the_firepower_9300.html?bookSearch=true" target="_blank"&gt;http://www.cisco.com/c/en/us/td/docs/security/firepower/fxos/fxos211/cli-config/b_CLI_ConfigGuide_FXOS_211/introduction_to_the_firepower_9300.html?bookSearch=true&lt;/A&gt;) about FXOS API REST.&lt;/P&gt;
&lt;P&gt;I have two pairs of 4100 Firepower and two pairs of 9300 Firepower, and they are connected to FMC 4000. I was trying to configure both pairs from API FXOS but I couldn't authenticate to FXOS API. FMC REST API is working and I can make GET, POST, etc.&lt;/P&gt;
&lt;P&gt;Any idea about more information about FXOS API?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;My request via POSTMAN is:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;POST &lt;A href="https://&amp;lt;Firepower" target="_blank"&gt;https://&amp;lt;Firepower&lt;/A&gt; Chassis_chassis_fqdn&amp;gt;[:management_port]/api/login&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;with HTTP Headers&lt;/P&gt;
&lt;P&gt;Content-type HTTP set to application/json&lt;/P&gt;
&lt;P&gt;USERNAME = &amp;lt;name of the user&amp;gt;&lt;/P&gt;
&lt;P&gt;PASSWORD = &amp;lt;url_encoded_password&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Output is:&lt;/P&gt;
&lt;P&gt;ERROR 400 with Payload&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt; "error-code": "551", &lt;BR /&gt; "error-description": "Authentication failed", &lt;BR /&gt; "error-nr": "unidentified-fail"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2019 13:23:00 GMT</pubDate>
    <dc:creator>JOSE MARIA PEREZ ALBA</dc:creator>
    <dc:date>2019-03-12T13:23:00Z</dc:date>
    <item>
      <title>API REST FXOS chassis 9300 or 4100 Firepower</title>
      <link>https://community.cisco.com/t5/network-security/api-rest-fxos-chassis-9300-or-4100-firepower/m-p/3031003#M1006677</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I was reading the below documentation about API REST of chassis (FXOS):&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developer.cisco.com/site/ssp/firepower/&amp;nbsp;" target="_blank"&gt;https://developer.cisco.com/site/ssp/firepower/&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;But I haven't found more information (only it is mentioned at&amp;nbsp;&lt;A href="http://www.cisco.com/c/en/us/td/docs/security/firepower/fxos/fxos211/cli-config/b_CLI_ConfigGuide_FXOS_211/introduction_to_the_firepower_9300.html?bookSearch=true" target="_blank"&gt;http://www.cisco.com/c/en/us/td/docs/security/firepower/fxos/fxos211/cli-config/b_CLI_ConfigGuide_FXOS_211/introduction_to_the_firepower_9300.html?bookSearch=true&lt;/A&gt;) about FXOS API REST.&lt;/P&gt;
&lt;P&gt;I have two pairs of 4100 Firepower and two pairs of 9300 Firepower, and they are connected to FMC 4000. I was trying to configure both pairs from API FXOS but I couldn't authenticate to FXOS API. FMC REST API is working and I can make GET, POST, etc.&lt;/P&gt;
&lt;P&gt;Any idea about more information about FXOS API?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;My request via POSTMAN is:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;POST &lt;A href="https://&amp;lt;Firepower" target="_blank"&gt;https://&amp;lt;Firepower&lt;/A&gt; Chassis_chassis_fqdn&amp;gt;[:management_port]/api/login&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;with HTTP Headers&lt;/P&gt;
&lt;P&gt;Content-type HTTP set to application/json&lt;/P&gt;
&lt;P&gt;USERNAME = &amp;lt;name of the user&amp;gt;&lt;/P&gt;
&lt;P&gt;PASSWORD = &amp;lt;url_encoded_password&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Output is:&lt;/P&gt;
&lt;P&gt;ERROR 400 with Payload&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt; "error-code": "551", &lt;BR /&gt; "error-description": "Authentication failed", &lt;BR /&gt; "error-nr": "unidentified-fail"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 13:23:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/api-rest-fxos-chassis-9300-or-4100-firepower/m-p/3031003#M1006677</guid>
      <dc:creator>JOSE MARIA PEREZ ALBA</dc:creator>
      <dc:date>2019-03-12T13:23:00Z</dc:date>
    </item>
    <item>
      <title>josemaria.perez,</title>
      <link>https://community.cisco.com/t5/network-security/api-rest-fxos-chassis-9300-or-4100-firepower/m-p/3031004#M1006693</link>
      <description>&lt;P&gt;josemaria.perez,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Have you tried using basic authorization&amp;nbsp;rather than directly adding the fields to the header? This will ensure that the encoding is done properly and should return a token back in the header for use in all subsequent requests.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 15:10:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/api-rest-fxos-chassis-9300-or-4100-firepower/m-p/3031004#M1006693</guid>
      <dc:creator>neipatel</dc:creator>
      <dc:date>2017-05-03T15:10:41Z</dc:date>
    </item>
    <item>
      <title>Hi neipatel:</title>
      <link>https://community.cisco.com/t5/network-security/api-rest-fxos-chassis-9300-or-4100-firepower/m-p/3031005#M1006724</link>
      <description>&lt;P&gt;Hi neipatel:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks for your helping. For example, If I make a curl to FMC 4000 to request the token, basic auth works but I have tried it for this case and I have the same output error. I have checked from Postman and CLI.&lt;/P&gt;
&lt;P&gt;$ curl -k --user username:password &lt;A href="https://&amp;lt;Firepower" target="_blank"&gt;https://&amp;lt;Firepower&lt;/A&gt; Chassis_chassis_fqdn&amp;gt;/api/login&lt;/P&gt;
&lt;P&gt;Cache-Control: no-store, must-revalidate&lt;BR /&gt;Content-type: application/json&lt;/P&gt;
&lt;P&gt;{"error-code": "552", "error-description": "Authorization required", "error-nr": "service-unavailable"}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Anybody know that it is working this API? FMC API is OK.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 15:56:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/api-rest-fxos-chassis-9300-or-4100-firepower/m-p/3031005#M1006724</guid>
      <dc:creator>JOSE MARIA PEREZ ALBA</dc:creator>
      <dc:date>2017-05-04T15:56:53Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.cisco.com/t5/network-security/api-rest-fxos-chassis-9300-or-4100-firepower/m-p/3031006#M1006734</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;What FCM/FXOS version are you using?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I have tried now on FXOS 2.1.1.77 and it is working fine, here is syntax as an example that you can use:&lt;/P&gt;
&lt;P&gt;$ &lt;STRONG&gt;curl -X POST -v -k -H "Authorization: Basic YWRtaW46VmtsYXV6b3YxMjM=" &lt;A href="https://192.168.0.38/api/login" target="_blank"&gt;https://192.168.0.38/api/login&lt;/A&gt; --insecure -H "USERNAME=admin" -H "\&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;gt; Authorization:Basic YWRtaW46VmtsYXV6b3YxMjM=&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;gt; USERNAME:admin&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;gt; PASSWORD:Admin12345&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;gt; //Content-Type:application/x-www-form-urlencoded\&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;gt; "&lt;/STRONG&gt;&lt;BR /&gt;* Trying 192.168.0.38...&lt;BR /&gt;* Connected to192.168.0.38 (192.168.0.38) port 443 (#0)&lt;BR /&gt;* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384&lt;BR /&gt;* Server certificate: FPR4100&lt;BR /&gt;&amp;gt; POST /api/login HTTP/1.1&lt;BR /&gt;&amp;gt; Host:192.168.0.38&lt;BR /&gt;&amp;gt; User-Agent: curl/7.43.0&lt;BR /&gt;&amp;gt; Accept: */*&lt;BR /&gt;&amp;gt; Authorization: Basic YWRtaW46VmtsYXV6b3YxMjM=&lt;BR /&gt;&amp;gt; Authorization:Basic YWRtaW46VmtsYXV6b3YxMjM=&lt;BR /&gt;&amp;gt; USERNAME:admin&lt;BR /&gt;&amp;gt; PASSWORD:Admin12345&lt;BR /&gt;&amp;gt; //Content-Type:application/x-www-form-urlencoded&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;lt; HTTP/1.1 200 OK&lt;BR /&gt;&amp;lt; Date: Tue, 16 May 2017 20:22:41 GMT&lt;BR /&gt;&amp;lt; Server: Apache/2.4.16 (Unix) CiscoSSL/1.0.2j.6.0.269-fips&lt;BR /&gt;&amp;lt; Set-Cookie: SSA_C=2e85c9ea-9997-40d5-9f61-5805170417f9; Path=/; secure; Version=1&lt;BR /&gt;&amp;lt; Set-Cookie: SSA_T="1494966162/ea1cc996-7eff-4ba5-b95f-409fcfa34d5d"; httponly; Path=/; secure; Version=1&lt;BR /&gt;&amp;lt; Set-Cookie: SSA_U=admin; httponly; Path=/; secure; Version=1&lt;BR /&gt;&amp;lt; X-Frame-Options: SAMEORIGIN&lt;BR /&gt;&amp;lt; Cache-Control: no-cache, no-store&lt;BR /&gt;&amp;lt; Pragma: no-cache&lt;BR /&gt;&amp;lt; Transfer-Encoding: chunked&lt;BR /&gt;&amp;lt; Content-Type: application/json&lt;BR /&gt;&amp;lt;&lt;BR /&gt;{"token": "1494966162/ea1cc996-7eff-4ba5-b95f-409fcfa34d5d", "refreshPeriod": "600"}&lt;BR /&gt;* Connection #0 to host192.168.0.38 left intact&lt;/P&gt;
&lt;P&gt;Enjoy,&lt;/P&gt;
&lt;P&gt;Veronika&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 20:27:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/api-rest-fxos-chassis-9300-or-4100-firepower/m-p/3031006#M1006734</guid>
      <dc:creator>Veronika Klauzova</dc:creator>
      <dc:date>2017-05-16T20:27:10Z</dc:date>
    </item>
    <item>
      <title>Hi Veronika,</title>
      <link>https://community.cisco.com/t5/network-security/api-rest-fxos-chassis-9300-or-4100-firepower/m-p/3031007#M1006751</link>
      <description>&lt;P&gt;Hi Veronika,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thank you very much for your helping. The version of FXOS is 2.1.1.64 and FMC is 6.2.0. I have tried but it doesn't work for 4100 chassis. I will update firmware and FXOS next week and I will retry to connect to API.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;All the best.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 10:55:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/api-rest-fxos-chassis-9300-or-4100-firepower/m-p/3031007#M1006751</guid>
      <dc:creator>JOSE MARIA PEREZ ALBA</dc:creator>
      <dc:date>2017-05-25T10:55:24Z</dc:date>
    </item>
    <item>
      <title>So what output you see after</title>
      <link>https://community.cisco.com/t5/network-security/api-rest-fxos-chassis-9300-or-4100-firepower/m-p/3031008#M1006762</link>
      <description>&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;So what output you&amp;nbsp;see after using adjusted command which I have shared? Sill same error 552 as before?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Full command to be used:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;curl -X POST -v -k -H "Authorization: Basic YWRtaW46VmtsYXV6b3YxMjM=" &lt;A href="https://192.168.0.38/api/login"&gt;https://192.168.0.38/api/login&lt;/A&gt; --insecure -H "USERNAME=admin" -H "\&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;gt; Authorization:Basic YWRtaW46VmtsYXV6b3YxMjM=&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;gt; USERNAME:admin&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;gt; PASSWORD:Admin12345&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;gt; //Content-Type:application/x-www-form-urlencoded\&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;gt; "&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Just keep in mind to change IP address 192.168.0.38 to your IP address of Firepower Chassis Manager / FXOS manager along with proper&amp;nbsp;credentials, rest of the command attributes you can keep as above.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 12:31:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/api-rest-fxos-chassis-9300-or-4100-firepower/m-p/3031008#M1006762</guid>
      <dc:creator>Veronika Klauzova</dc:creator>
      <dc:date>2017-05-25T12:31:08Z</dc:date>
    </item>
    <item>
      <title>Hi Veronika:</title>
      <link>https://community.cisco.com/t5/network-security/api-rest-fxos-chassis-9300-or-4100-firepower/m-p/3031009#M1006767</link>
      <description>&lt;P&gt;Hi Veronika:&lt;/P&gt;
&lt;P&gt;Now, it is working. I&amp;nbsp;have the same output and I have the token &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; . I think that my error was to encode my password wrong for the basic authentication.&lt;/P&gt;
&lt;P&gt;It is working at 4100 and 9300 series.&lt;/P&gt;
&lt;P&gt;Also, I have modified your POST request. I have deleted two headers, modified Content-Type to application/json (documentation from CISCO say: "&lt;SPAN&gt;All REST API clients must send an HTTP Accept Header that is set to &lt;/SPAN&gt;&lt;CODE&gt;application/json&lt;/CODE&gt;" from &lt;A href="https://developer.cisco.com/site/ssp/firepower/)" target="_blank"&gt;https://developer.cisco.com/site/ssp/firepower/)&lt;/A&gt; and curl command should be:&lt;/P&gt;
&lt;P&gt;curl -X POST -v -k &lt;A href="https://yourFXOS_IP/api/login" target="_blank"&gt;https://yourFXOS_IP/api/login&lt;/A&gt; --insecure -H "\&lt;BR /&gt;Authorization:Basic YWRtaW46VmtsYXV6b3YxMjM=&lt;BR /&gt;USERNAME:admin&lt;BR /&gt;PASSWORD:admin12345&lt;BR /&gt;//Content-Type:application/json\&lt;BR /&gt;"&lt;/P&gt;
&lt;P&gt;For me, it is working.&lt;/P&gt;
&lt;P&gt;Thank you very much for your helping.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 15:37:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/api-rest-fxos-chassis-9300-or-4100-firepower/m-p/3031009#M1006767</guid>
      <dc:creator>JOSE MARIA PEREZ ALBA</dc:creator>
      <dc:date>2017-05-25T15:37:06Z</dc:date>
    </item>
    <item>
      <title>You're welcome, you saved</title>
      <link>https://community.cisco.com/t5/network-security/api-rest-fxos-chassis-9300-or-4100-firepower/m-p/3031010#M1006771</link>
      <description>&lt;P&gt;You're welcome, you saved some time with upgrade that was not necessary. Glad that it works now.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;By the way thanks for sharing Cisco recommendations and relevant doc.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 15:39:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/api-rest-fxos-chassis-9300-or-4100-firepower/m-p/3031010#M1006771</guid>
      <dc:creator>Veronika Klauzova</dc:creator>
      <dc:date>2017-05-25T15:39:24Z</dc:date>
    </item>
  </channel>
</rss>

