<?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: Assistance Needed: API Endpoint for Transitioning Meraki Licensing Model from Coterm to Subscrip in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/assistance-needed-api-endpoint-for-transitioning-meraki/m-p/5444634#M6962</link>
    <description>&lt;P&gt;Hi &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/82198"&gt;@sami2022&lt;/A&gt; I don't see any obvious explanation for the issue. I recommend working with Meraki Support to help triage the issue.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2024 22:02:37 GMT</pubDate>
    <dc:creator>John-on-API</dc:creator>
    <dc:date>2024-08-27T22:02:37Z</dc:date>
    <item>
      <title>Assistance Needed: API Endpoint for Transitioning Meraki Licensing Model from Coterm to Subscription</title>
      <link>https://community.cisco.com/t5/network-platform-api/assistance-needed-api-endpoint-for-transitioning-meraki/m-p/5444630#M6958</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I've noticed that when creating a new organization in Cisco Meraki, the default licensing model is cotermination.&lt;/P&gt;&lt;P&gt;I have been using the following Ansible task to add a subscription license, but it consistently fails:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;- name: Claim subscription licensing&lt;BR /&gt;cisco.meraki.administered_licensing_subscription_subscriptions_claim:&lt;BR /&gt;meraki_api_key: "{{ auth_key }}"&lt;BR /&gt;claimKey: "{{ subscription_claim_key }}"&lt;BR /&gt;name: "networks subscription license"&lt;BR /&gt;organizationId: "{{ org_id }}"&lt;BR /&gt;validate: true&lt;/P&gt;&lt;P&gt;It gives this error:&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;TASK [claim_organization_license ] *******&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;A class="" href="https://www.clinomic.biz/mona/mona-cloud/cloud-connector/-/jobs/227708#L133" target="_blank" rel="noopener nofollow noreferrer"&gt;133&lt;/A&gt;&lt;SPAN class=""&gt;An exception occurred during task execution. To see the full traceback, use -vvv. The error was: &amp;lt;center&amp;gt;&amp;lt;h1&amp;gt;404 Not Found&amp;lt;/h1&amp;gt;&amp;lt;/center&amp;gt;please wait a minute if the key or org was just newly created.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;A class="" href="https://www.clinomic.biz/mona/mona-cloud/cloud-connector/-/jobs/227708#L134" target="_blank" rel="noopener nofollow noreferrer"&gt;134&lt;/A&gt;&lt;SPAN class=""&gt;fatal: [localhost]: FAILED! =&amp;gt; {"changed": false, "msg": "An error occured when executing operation.The error was: licensing, claimAdministeredLicensingSubscriptionSubscriptions - 404 Not Found, &amp;lt;html&amp;gt;\r\n&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;404 Not Found&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;\r\n&amp;lt;body&amp;gt;\r\n&amp;lt;center&amp;gt;&amp;lt;h1&amp;gt;404 Not Found&amp;lt;/h1&amp;gt;&amp;lt;/center&amp;gt;please wait a minute if the key or org was just newly created."}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;This task works as expected when tested with an organization where the subscription license was added manually. However, it fails when applied to a newly created organization.&lt;/P&gt;&lt;P&gt;I am attempting to automate the transition from the default coterm license model to a subscription licensing model using Ansible. Could anyone provide guidance on the correct API endpoint?&lt;/P&gt;&lt;P&gt;Thank you in advance for your help!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;: 2 post updated by adding the error details when it fails.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 10:21:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/assistance-needed-api-endpoint-for-transitioning-meraki/m-p/5444630#M6958</guid>
      <dc:creator>sami2022</dc:creator>
      <dc:date>2024-08-23T10:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance Needed: API Endpoint for Transitioning Meraki Licensing Model from Coterm to Subscrip</title>
      <link>https://community.cisco.com/t5/network-platform-api/assistance-needed-api-endpoint-for-transitioning-meraki/m-p/5444631#M6959</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/82198"&gt;@sami2022&lt;/A&gt;, thanks for asking! Exciting to hear that you're using Ansible. Just curious, are you using Meraki's official Ansible modules or rolling your own?&lt;/P&gt;&lt;P&gt;The following are prereqs for claiming a subscription into an organization:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You must be an org-write admin.&lt;/LI&gt;&lt;LI&gt;The organization must not have any active co-term licenses.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It sounds like you are using the correct operation, &lt;A href="https://developer.cisco.com/meraki/api-v1/claim-administered-licensing-subscription-subscriptions/" target="_self" rel="nofollow noopener noreferrer"&gt;claimAdministeredLicensingSubscriptionSubscriptions&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;If I had to guess, you might not have org-write admin privileges. But hopefully the above helps nail it down.&lt;/P&gt;&lt;P&gt;It would also help if you try to recreate the issue in Postman--taking Ansible out of the equation. That way you're not simultaneously troubleshooting both an API error and a possible Ansible issue.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 19:44:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/assistance-needed-api-endpoint-for-transitioning-meraki/m-p/5444631#M6959</guid>
      <dc:creator>John-on-API</dc:creator>
      <dc:date>2024-08-23T19:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance Needed: API Endpoint for Transitioning Meraki Licensing Model from Coterm to Subscrip</title>
      <link>https://community.cisco.com/t5/network-platform-api/assistance-needed-api-endpoint-for-transitioning-meraki/m-p/5444632#M6960</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/45238"&gt;@John-on-API&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your response! I can confirm that I have org-write admin privileges and that the organization does not have any active co-term licenses. I'm also using Meraki's official Ansible modules for rolling out the configurations.&lt;/P&gt;&lt;P&gt;I will try to recreate the issue in Postman as you suggested and will update you on the outcome.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;Semsem2050&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 08:29:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/assistance-needed-api-endpoint-for-transitioning-meraki/m-p/5444632#M6960</guid>
      <dc:creator>sami2022</dc:creator>
      <dc:date>2024-08-26T08:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance Needed: API Endpoint for Transitioning Meraki Licensing Model from Coterm to Subscrip</title>
      <link>https://community.cisco.com/t5/network-platform-api/assistance-needed-api-endpoint-for-transitioning-meraki/m-p/5444633#M6961</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/45238"&gt;@John-on-API&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;I tested the process using both Postman and the &lt;A href="https://developer.cisco.com/meraki/api-v1/claim-administered-licensing-subscription-subscriptions/" target="_blank" rel="noopener nofollow noreferrer"&gt;curl&lt;/A&gt; tool, but encountered an error. Here’s what I did:&lt;/P&gt;&lt;P&gt;```bash&lt;BR /&gt;$ curl -L --request POST \&lt;BR /&gt;--url &lt;A href="https://api.meraki.com/api/v1/administered/licensing/subscription/subscriptions/claim" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.meraki.com/api/v1/administered/licensing/subscription/subscriptions/claim&lt;/A&gt; \&lt;BR /&gt;--header 'Authorization: Bearer xxxxxxxxxxxxxxxxxxx' \&lt;BR /&gt;--header 'Content-Type: application/json' \&lt;BR /&gt;--header 'Accept: application/json' \&lt;BR /&gt;--data '{&lt;BR /&gt;"validate": true,&lt;BR /&gt;"claimKey": "xxxxxxxxxxxxxxxxxxx",&lt;BR /&gt;"organizationId": "xxxxxxxxxxxxxxxxxxxxxx",&lt;BR /&gt;"name": "Claim subscription",&lt;BR /&gt;"description": "Subscription for office Network"&lt;BR /&gt;}'&lt;BR /&gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;404 Not Found&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;center&amp;gt;&amp;lt;h1&amp;gt;404 Not Found&amp;lt;/h1&amp;gt;&amp;lt;/center&amp;gt;&lt;BR /&gt;&amp;lt;hr&amp;gt;&amp;lt;center&amp;gt;nginx&amp;lt;/center&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;BR /&gt;&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;The response returned a 404 Not Found error.&lt;/P&gt;&lt;P&gt;Just to clarify, the organization has no active licenses, and I created it from scratch. I'm trying to figure out how to claim the subscription license using Ansible before adding it manually. In a previous case, when I added the license manually, the org's status changed to "Subscription &amp;amp; License Info" (subscription license model) as expected.&lt;BR /&gt;&lt;BR /&gt;Also, I use this &lt;A href="https://docs.ansible.com/ansible/latest/collections/cisco/meraki/administered_licensing_subscription_subscriptions_claim_module.html#ansible-collections-cisco-meraki-administered-licensing-subscription-subscriptions-claim-module" target="_blank" rel="noopener nofollow noreferrer"&gt;module&lt;/A&gt; (cisco.meraki collection version 2.18.1) to develop the Ansible playbooks.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Any further insights would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="semsem2050_1-1724675314885.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/264024i4C1441B3AAE0803A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 12:33:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/assistance-needed-api-endpoint-for-transitioning-meraki/m-p/5444633#M6961</guid>
      <dc:creator>sami2022</dc:creator>
      <dc:date>2024-08-26T12:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance Needed: API Endpoint for Transitioning Meraki Licensing Model from Coterm to Subscrip</title>
      <link>https://community.cisco.com/t5/network-platform-api/assistance-needed-api-endpoint-for-transitioning-meraki/m-p/5444634#M6962</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/82198"&gt;@sami2022&lt;/A&gt; I don't see any obvious explanation for the issue. I recommend working with Meraki Support to help triage the issue.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 22:02:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/assistance-needed-api-endpoint-for-transitioning-meraki/m-p/5444634#M6962</guid>
      <dc:creator>John-on-API</dc:creator>
      <dc:date>2024-08-27T22:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance Needed: API Endpoint for Transitioning Meraki Licensing Model from Coterm to Subscrip</title>
      <link>https://community.cisco.com/t5/network-platform-api/assistance-needed-api-endpoint-for-transitioning-meraki/m-p/5444635#M6963</link>
      <description>&lt;P&gt;Thank you, &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/45238"&gt;@John-on-API&lt;/A&gt;, I will do.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 13:02:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/assistance-needed-api-endpoint-for-transitioning-meraki/m-p/5444635#M6963</guid>
      <dc:creator>sami2022</dc:creator>
      <dc:date>2024-08-28T13:02:32Z</dc:date>
    </item>
  </channel>
</rss>

