06-08-2023 04:13 AM
{
"errors": [
"organizations/XXXXXXXXX/switch/devices/clone does not support Action Batches."
]
}Here is the action batch body :
{
"confirmed": false,
"synchronous": true,
"actions": [ {
"resource": "organizations/{{organizationId}}/switch/devices/clone",
"operation": "update",
"body": {
"sourceSerial": "XXXX-XXXX-XXXX",
"targetSerials": [
"{{SN1}}"
]
}
}
]
}I'm wondering if there is any workaround?
Solved! Go to Solution.
06-08-2023 10:58 AM
From the supported resources list for action batches it looks like you will want to use /organizations/{organizationId}/switch/devices for the resource path with the operation of clone.
06-08-2023 05:20 AM
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.
06-08-2023 06:34 AM
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
"confirmed": false,
06-08-2023 10:58 AM
From the supported resources list for action batches it looks like you will want to use /organizations/{organizationId}/switch/devices for the resource path with the operation of clone.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide