cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
226
Views
0
Helpful
2
Replies

Is there an API for adding lines to the ATA400 series analogue gateway

Lee Marson
Level 5
Level 5

Hi, I'm looking for some help/advice on automating the configuration of ATA420 devices in Webex Calling. This involves creating a workspace for each device/port on the device. These devices support up to 144 devices on each. Once the workspaces are created (which I am happy to script as the API is available) you have to go into the device and then for each of the 144 lines/ports you then allocate the relevant workspace. As you can imagine this is a long process especially if you have multiple gateways, so the question is, is there a way to script the population of the lines on the device with the the workspace. I can't find an API in the documentation so any pointers would be helpful

Thanks 

2 Replies 2

Lee Marson
Level 5
Level 5

Hi @MichaelRalston0900 Thanks for the feedback. I'll take a look at this and get back to you. I've built the script for looping through a csv file and creating the workspaces...I need about 1000 creating! I'll look to see if this works to associate them to the device. 

Hello @Lee Marson

You will have to use a combination of APIs to achieve this. If you are not familiar with the APIs, I would recommend using the wxc_sdk or wxcadm python libraries to assist. I will explain the wxcadm method as it's a little more friendly if you are not super familar with python/the webex APIs.

To start, you'll need to get the Device ID of the VG420. You can search it by MAC address using this get method. This will return a Device object you will use later. 
To create the workspaces (with no devices), this create method from wxcadm. After creating the workspaces you'll get a Workspace object returned where you can then pass into the add method for the device members. 
As you create each new workspace, you can update the members (shared lines) of the device using this add method.

Depending on how many workspaces you need to create, you may be better off putting the data into an excel sheet and using python to read and then loop through that sheet to create all the workspaces at once. Let me know if you have any questions on this approach.