VLAN Profiles Action Batch

webfrank
Getting noticed

VLAN Profiles Action Batch

Hi, I was trying to create some action batches to set network plan profiles but when I try to submit the batch I always got error 500.

 

This is a sample payload :

 

{
    "confirmed": false,
    "synchronous": false,
    "actions": [
        {
            "resource": "/networks/***redacted***/vlanProfiles",
            "operation": "create",
            "body": {
              "iname": "Test",
              "name": "Test Profile",
              "vlanGroups": [],
              "vlanNames": [
                {
                    "name": "test",
                    "vlanId": "100"
                }
              ]
            }
          }
    ]
}

 

Any suggestion?

6 Replies 6
RaresPauna
Getting noticed

Everything seems fine, action batches gave me a hard time and I stopped trying to use them. Instead I work with meraki.aio library and make concurrent calls for efficiency

rhbirkelund
Kind of a big deal

In general regarding actionbatches there are two ways to run them; synchronous or asynchronous. Running them synchronous means they are pushed in the order as the are appended in the actions. Asynchronous they are pushed in whatever order. And either way they aren't pushed unless "confirmed" is set to True.

 

You submit a batch that is supposed to run, and it returns an ID. You then check on that ID to make sure it's actually completed or not.

 

I think the payload looks good enough. Are you running it synchronous? And how many actions are there? Synchronous mode, only supports up to 20 actions, so you'll need to split it up in chunks.

 

Perhaps also use True/False, and not true/false (first letter capital).

LinkedIn ::: https://blog.rhbirkelund.dk/

Like what you see? - Give a Kudo ## Did it answer your question? - Mark it as a Solution 🙂

All code examples are provided as is. Responsibility for Code execution lies solely your own.
webfrank
Getting noticed

I need action batches as I need to push configuration changes for thousands of networks. 

 

As the sample payload I use asynchronous call (cannot wait) and I already manage the returned ID to check status. 

 

The overall process works flawlessly, the issue is with this specific action batch which returns always error 500, regardless the way I try to configure it. 

Are VlanProfiles enabled on your organization in the early access API?

LinkedIn ::: https://blog.rhbirkelund.dk/

Like what you see? - Give a Kudo ## Did it answer your question? - Mark it as a Solution 🙂

All code examples are provided as is. Responsibility for Code execution lies solely your own.
PhilipDAth
Kind of a big deal
Kind of a big deal

Is the network either a "combined" network or a "switch" network?

 

This is also an "Early Access" feature.  Have you got "Early Access" enabled for either the org or this network under Organization/Easy Access?

PhilipDAth_0-1711836599287.png

 

webfrank
Getting noticed

Hi, both Early Access and VLAN Profiles are enabled for the organization but still Error 500 from Meraki if trying to submit a batch with a VLAN Profile action.

Get notified when there are additional replies to this discussion.