<?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 Re: FMC Sandbox API - No Devices &amp;amp; Authorization Error in DevNet Sandbox</title>
    <link>https://community.cisco.com/t5/devnet-sandbox/fmc-sandbox-api-no-devices-amp-authorization-error/m-p/5260859#M10930</link>
    <description>&lt;P&gt;Okay, Thanks for the response. Have a good weekend&lt;/P&gt;</description>
    <pubDate>Sat, 15 Feb 2025 15:30:34 GMT</pubDate>
    <dc:creator>mdusman</dc:creator>
    <dc:date>2025-02-15T15:30:34Z</dc:date>
    <item>
      <title>FMC Sandbox API - No Devices &amp; Authorization Error</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/fmc-sandbox-api-no-devices-amp-authorization-error/m-p/5260217#M10919</link>
      <description>&lt;P&gt;I am using the &lt;STRONG&gt;Cisco FMC Sandbox API Explorer&lt;/STRONG&gt; on the &lt;STRONG&gt;Always-On Sandbox&lt;/STRONG&gt; (&lt;A href="https://fmcrestapisandbox.cisco.com/" target="_blank" rel="noopener"&gt;Sandbox URL&lt;/A&gt;), but I am experiencing issues when querying device records and checking task statuses.&lt;/P&gt;&lt;HR /&gt;&lt;H4&gt;&lt;STRONG&gt;API Calls &amp;amp; Errors:&lt;/STRONG&gt;&lt;/H4&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":keycap_1:"&gt;1️⃣&lt;/span&gt; &lt;STRONG&gt;Checking Device Registration Status:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;GET {{protocol}}://{{hostname}}/api/fmc_config/v1/domain/{{domain_id}}/job/taskstatuses/{{device_registration_task_id}}&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Response:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;{
    "error": {
        "category": "FRAMEWORK",
        "messages": [
            {
                "description": "The user is not authorized"
            }
        ],
        "severity": "ERROR"
    }
}&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Issue:&lt;/STRONG&gt; I am receiving an &lt;STRONG&gt;authorization error&lt;/STRONG&gt;, even though I am using the API Explorer with the correct credentials.&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":keycap_2:"&gt;2️⃣&lt;/span&gt; &lt;STRONG&gt;Checking Registered Devices:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;GET {{protocol}}://{{hostname}}/api/fmc_config/v1/domain/{{domain_id}}/devices/devicerecords?expanded=True&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Response:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;{
  "links": {},
  "paging": {
    "offset": 0,
    "limit": 0,
    "count": 0,
    "pages": 0
  }
}&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Issue:&lt;/STRONG&gt; The response is empty, even though the sandbox is supposed to have &lt;STRONG&gt;two Firepower Threat Defense (FTD) sensors&lt;/STRONG&gt; preconfigured.&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;H4&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/H4&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Why am I getting an "Unauthorized" error when checking task statuses?&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Do I need additional permissions, or is this a known limitation of the Always-On Sandbox?&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Why are no devices appearing when querying devices/devicerecords?&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is there an issue with the current sandbox environment, or should I reserve a new instance?&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any guidance on troubleshooting this would be greatly appreciated. Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 15:13:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/fmc-sandbox-api-no-devices-amp-authorization-error/m-p/5260217#M10919</guid>
      <dc:creator>mdusman</dc:creator>
      <dc:date>2025-02-13T15:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: FMC Sandbox API - No Devices &amp; Authorization Error</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/fmc-sandbox-api-no-devices-amp-authorization-error/m-p/5260236#M10920</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1843640"&gt;@mdusman&lt;/a&gt;&amp;nbsp;did you generate a token?&amp;nbsp;&lt;CODE class="ph codeph"&gt;https://&amp;lt;management_center_IP_or_name&amp;gt;/api/fmc_platform/v1/auth/generatetoken&lt;/CODE&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 16:09:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/fmc-sandbox-api-no-devices-amp-authorization-error/m-p/5260236#M10920</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2025-02-13T16:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: FMC Sandbox API - No Devices &amp; Authorization Error</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/fmc-sandbox-api-no-devices-amp-authorization-error/m-p/5260247#M10921</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/352839"&gt;@bigevilbeard&lt;/a&gt;&amp;nbsp;, thanks for the response.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yes I have. Getting Access Policies worked fine but Other than Devices returns empty and registration status task endpoint also giving User not authorized issue.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 16:32:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/fmc-sandbox-api-no-devices-amp-authorization-error/m-p/5260247#M10921</guid>
      <dc:creator>mdusman</dc:creator>
      <dc:date>2025-02-13T16:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: FMC Sandbox API - No Devices &amp; Authorization Error</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/fmc-sandbox-api-no-devices-amp-authorization-error/m-p/5260248#M10922</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1843640"&gt;@mdusman&lt;/a&gt;&amp;nbsp;just tested also, reply back is the same, i tried to get the tasks also.... as well as your first call same error as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;python fmc_task_lists.py
Authentication successful! Access token and domain UUID retrieved.
Access Token: 45b2df3e-6457-4061-880a-5df948338c04
Domain UUID: e276abec-e0f2-11e3-8169-6d9ed49b625f
Failed to retrieve tasks. Status code: 403
{"error":{"category":"FRAMEWORK","messages":[{"description":"The user is not authorized"}],"severity":"ERROR"}}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Getting the devices&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;✦ ❯ python fmc_devices.py
Authentication successful! Access token and domain UUID retrieved.
Access Token: f0dd0eb7-f2e8-4248-851b-4c700dba92c0
Domain UUID: e276abec-e0f2-11e3-8169-6d9ed49b625f
Device records retrieved successfully!
{'links': {}, 'paging': {'offset': 0, 'limit': 0, 'count': 0, 'pages': 0}}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I saw a pop up in the UI which said 'no devices attached' i cannot recall how i saw this tho, it flashed up. Guess team will need to advise here.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 16:38:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/fmc-sandbox-api-no-devices-amp-authorization-error/m-p/5260248#M10922</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2025-02-13T16:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: FMC Sandbox API - No Devices &amp; Authorization Error</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/fmc-sandbox-api-no-devices-amp-authorization-error/m-p/5260257#M10923</link>
      <description>&lt;P&gt;Did you try Devices endpoint on Sandbox environment?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 16:54:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/fmc-sandbox-api-no-devices-amp-authorization-error/m-p/5260257#M10923</guid>
      <dc:creator>mdusman</dc:creator>
      <dc:date>2025-02-13T16:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: FMC Sandbox API - No Devices &amp; Authorization Error</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/fmc-sandbox-api-no-devices-amp-authorization-error/m-p/5260258#M10924</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1843640"&gt;@mdusman&lt;/a&gt;&amp;nbsp;Checking Device Registration Status? Yes same error as you.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 16:56:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/fmc-sandbox-api-no-devices-amp-authorization-error/m-p/5260258#M10924</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2025-02-13T16:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: FMC Sandbox API - No Devices &amp; Authorization Error</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/fmc-sandbox-api-no-devices-amp-authorization-error/m-p/5260260#M10925</link>
      <description>&lt;P&gt;Thanks for the feedback&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/352839"&gt;@bigevilbeard&lt;/a&gt;&amp;nbsp;, can I contact support for this?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 17:03:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/fmc-sandbox-api-no-devices-amp-authorization-error/m-p/5260260#M10925</guid>
      <dc:creator>mdusman</dc:creator>
      <dc:date>2025-02-13T17:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: FMC Sandbox API - No Devices &amp; Authorization Error</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/fmc-sandbox-api-no-devices-amp-authorization-error/m-p/5260511#M10927</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1843640"&gt;@mdusman&lt;/a&gt;&amp;nbsp;the Devnet team monitor this space, it’s Cisco Live this week so they might be busy keeping the lights on for the sandbox there. I’m sure they will pick this up&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 09:58:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/fmc-sandbox-api-no-devices-amp-authorization-error/m-p/5260511#M10927</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2025-02-14T09:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: FMC Sandbox API - No Devices &amp; Authorization Error</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/fmc-sandbox-api-no-devices-amp-authorization-error/m-p/5260859#M10930</link>
      <description>&lt;P&gt;Okay, Thanks for the response. Have a good weekend&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2025 15:30:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/fmc-sandbox-api-no-devices-amp-authorization-error/m-p/5260859#M10930</guid>
      <dc:creator>mdusman</dc:creator>
      <dc:date>2025-02-15T15:30:34Z</dc:date>
    </item>
  </channel>
</rss>

