<?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: Cloning switch ports with action batch api call in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/cloning-switch-ports-with-action-batch-api-call/m-p/5438389#M6064</link>
    <description>&lt;P&gt;Without seeing the whole code you most likely just need to remove the attempt to use batch action and put your code within a for loop going across each switch you want to clone. &lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 12:20:37 GMT</pubDate>
    <dc:creator>Frazer McKechnie</dc:creator>
    <dc:date>2023-06-08T12:20:37Z</dc:date>
    <item>
      <title>Cloning switch ports with action batch api call</title>
      <link>https://community.cisco.com/t5/network-platform-api/cloning-switch-ports-with-action-batch-api-call/m-p/5438388#M6063</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;Hello All,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;When attempting to utilize the organizations/{{orgId}}/switch/devices/clone api call with Meraki Action Batche, an error message is thrown, indicating that this combination is not supported:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE class="lia-code-sample language-javascript"&gt;&lt;CODE&gt;{
    "errors": [
        "organizations/XXXXXXXXX/switch/devices/clone does not support Action Batches."
    ]
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is the action batch body :&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;{
    "confirmed": false,
    "synchronous": true,
    "actions": [        {
            "resource": "organizations/{{organizationId}}/switch/devices/clone",
            "operation": "update",
            "body": {
                "sourceSerial": "XXXX-XXXX-XXXX",
                "targetSerials": [
                    "{{SN1}}"
                ]
            }
        }
		]
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm wondering if there is any workaround?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 11:13:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/cloning-switch-ports-with-action-batch-api-call/m-p/5438388#M6063</guid>
      <dc:creator>badreddine</dc:creator>
      <dc:date>2023-06-08T11:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning switch ports with action batch api call</title>
      <link>https://community.cisco.com/t5/network-platform-api/cloning-switch-ports-with-action-batch-api-call/m-p/5438389#M6064</link>
      <description>&lt;P&gt;Without seeing the whole code you most likely just need to remove the attempt to use batch action and put your code within a for loop going across each switch you want to clone. &lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 12:20:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/cloning-switch-ports-with-action-batch-api-call/m-p/5438389#M6064</guid>
      <dc:creator>Frazer McKechnie</dc:creator>
      <dc:date>2023-06-08T12:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning switch ports with action batch api call</title>
      <link>https://community.cisco.com/t5/network-platform-api/cloning-switch-ports-with-action-batch-api-call/m-p/5438390#M6065</link>
      <description>&lt;P&gt;Thank you for your prompt response, it's a good solution, but I'm using only Postman to push the configurations. Additionally, the batch action api call can also be used to test if the configuration will be pushed correctly if the attribute confirmed is set to false&lt;/P&gt;&lt;PRE&gt;    "confirmed": false,&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Jun 2023 13:34:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/cloning-switch-ports-with-action-batch-api-call/m-p/5438390#M6065</guid>
      <dc:creator>badreddine</dc:creator>
      <dc:date>2023-06-08T13:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning switch ports with action batch api call</title>
      <link>https://community.cisco.com/t5/network-platform-api/cloning-switch-ports-with-action-batch-api-call/m-p/5438391#M6066</link>
      <description>&lt;P&gt;From the &lt;A href="https://developer.cisco.com/meraki/api-v1/#!supported-resources:~:text=clone" target="_blank" rel="noopener nofollow noreferrer"&gt;supported resources list for action batches&lt;/A&gt; it looks like you will want to use &lt;EM&gt;/organizations/{organizationId}/switch/devices &lt;/EM&gt;&lt;SPAN&gt;for the resource path with the operation of &lt;EM&gt;clone&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 17:58:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/cloning-switch-ports-with-action-batch-api-call/m-p/5438391#M6066</guid>
      <dc:creator>JasonMo</dc:creator>
      <dc:date>2023-06-08T17:58:19Z</dc:date>
    </item>
  </channel>
</rss>

