cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

New API Endpoints! Wireless Health, Alert Settings, Enabling VLANs, Syslog and more!

Meraki Employee

New API Endpoints! Wireless Health, Alert Settings, Enabling VLANs, Syslog and more!

Several updates to the Dashboard API & Postman Collection!

 

https://documenter.getpostman.com/view/897512/2To9xm#whats-new

 

What's New?

October 2018

ALERT SETTINGS

Return the alert configuration for this network

  • GET /networks/[networkId]/alertSettings

Update the alert configuration for this network

  • PUT /networks/[networkId]/alertSettings

HTTP SERVERS

Manage servers for Meraki Alerts with webhooks

List the HTTP servers for a network

  • GET /networks/[networkId]/httpServers

Return an HTTP server

  • GET /networks/[networkId]/httpServers/[id]

Update an HTTP server

  • PUT /networks/[networkId]/httpServers/[id]

Add an HTTP server

  • POST /networks/[networkId]/httpServers

Delete an HTTP server

  • DEL /networks/[networkId]/httpServers/[id]

Send a test webhook

  • POST /networks/[networkId]/httpServers/webhookTests

Return the status of a webhook test

  • GET /networks/[networkId]/httpServers/webhookTests/[id]

WIRELESS HEALTH

Aggregated connectivity info for this network

  • GET /networks/[networkId]/connectionStats

Aggregated connectivity info for this network, grouped by node

  • GET /networks/[networkId]/devices/connectionStats

Aggregated connectivity info for a given AP on this network

  • GET /networks/[networkId]/devices/[serial]/connectionStats

Aggregated connectivity info for this network, grouped by clients

  • GET /networks/[networkId]/clients/connectionStats

Aggregated connectivity info for a given client on this network

  • GET /networks/[networkId]/clients/[clientId]/connectionStats

Aggregated latency info for this network

  • GET /networks/[networkId]/latencyStats

Aggregated latency info for this network, grouped by node

  • GET /networks/[networkId]/devices/latencyStats

Aggregated latency info for a given AP on this network

  • GET /networks/[networkId]/devices/[serial]/latencyStats

Aggregated latency info for this network, grouped by clients

  • GET /networks/[networkId]/clients/latencyStats

Aggregated latency info for a given client on this network

  • GET /networks/[networkId]/clients/[clientId]/latencyStats

List of all failed client connection events on this network in a given time

  • GET /networks/[networkId]/failedConnections

VLANS

Enable/Disable VLANs for the given network

  • PUT /networks/[networkId]/vlansEnabledState

September 2018

SYSLOG SERVERS

List the syslog servers for a network

  • GET /networks/[networkId]/syslogServers

Update the syslog servers for a network

  • PUT /networks/[networkId]/syslogServers

Returns video link for the specified camera. If a timestamp supplied, it links to that time.

  • GET /devices/[serial]/cameras/video_link

List LLDP and CDP information for a device

  • GET /networks/[networkId]/devices/[serial]/lldp_cdp

 

12 REPLIES 12
Kind of a big deal

Re: New API Endpoints! Wireless Health, Alert Settings, Enabling VLANs, Syslog and more!

Awesome, keep up the good work!

Meraki CMNO, Ruckus WISE, Sonicwall CSSA, Allied Telesis CASE & CAI
Kind of a big deal

Re: New API Endpoints! Wireless Health, Alert Settings, Enabling VLANs, Syslog and more!

Phew.  So what are you going to release tomorrow?

Here to help

Re: New API Endpoints! Wireless Health, Alert Settings, Enabling VLANs, Syslog and more!

Hi, I noticed that Wireless Health API does not work if network is of type combined but is ok if network is of type wireless.

 

Any chance to use this API also on combined network?

Here to help

Re: New API Endpoints! Wireless Health, Alert Settings, Enabling VLANs, Syslog and more!

Thanks for the updates, many useful new options.  Keep bringing them.

Conversationalist

Re: New API Endpoints! Wireless Health, Alert Settings, Enabling VLANs, Syslog and more!

Is API support for any of the Layer 7 rules or Forwarding Rules on the roadmap?

Meraki Employee

Re: New API Endpoints! Wireless Health, Alert Settings, Enabling VLANs, Syslog and more!

Yes! The port forwarding rules were just released. 

See the new updates here:

https://create.meraki.io/whats-new/

 

 

Head in the Cloud

Re: New API Endpoints! Wireless Health, Alert Settings, Enabling VLANs, Syslog and more!

The port forwarding endpoint is so good. Saved me quite a bit of time this morning.

 

I'm really interested in being able to manage L7 rules via API though. I know it's been on the roadmap for a while, from what a Meraki SE told me last summer. We had a large project we had to pass on because the L7 rules aren't in the API yet...

Here to help

Re: New API Endpoints! Wireless Health, Alert Settings, Enabling VLANs, Syslog and more!

I get a 404 error when trying to pull syslog info using

 

List the syslog servers for a network

  • GET /networks/[networkId]/syslogServers

Is there something missing in documentation?

Meraki Employee

Re: New API Endpoints! Wireless Health, Alert Settings, Enabling VLANs, Syslog and more!

Should be working, just tested. Maybe share your script snippet without key?


curl -X GET \
https://api.meraki.com/api/v0/networks/L_1234567890/syslogServers \
-H 'X-Cisco-Meraki-API-Key: <APIKEY>'



[
    {
        "host": "1.2.3.4",
        "port": "443",
        "roles": [
            "URLs",
            "Wireless event log"
        ]
    }
]
Here to help

Re: New API Endpoints! Wireless Health, Alert Settings, Enabling VLANs, Syslog and more!

Thanks for the reply! I'm using Powershell and I modified your call and it worked.

 

I'm using a Powershell Module that was created by someone on this board. I don't remember who that is, my apologies for not attributing. This module didn't have the syslog call in a cmdlet so I added it.

 

function Get-MerakiSyslog {
param (
[Parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
[String]
$api_key,

[Parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
# [String]
$networkId
)
$api = @{
"endpoint" = 'https://api.meraki.com/api/v0'
}

$header = @{
"X-Cisco-Meraki-API-Key" = $api_key
"Content-Type" = 'application/json'
}

$api.url = '/networks/$networkId/syslogServers'
$uri = $api.endpoint + $api.url
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$request = Invoke-RestMethod -Method GET -Uri $uri -Headers $header
return $request

} Export-ModuleMember -Function Get-MerakiSyslog

 

I then call the cmdlet like so:

Get-MerakiSyslog -api_key "**********" -networkID "N_660903245316689202"

 

This returns a 404.

Here to help

Re: New API Endpoints! Wireless Health, Alert Settings, Enabling VLANs, Syslog and more!

I should also mention that I commented out [String] to make sure Powershell wasn't changing the networkId in any way. So its been tried with and without the commented line.

 

[Parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
# [String]
$networkId

 

Here to help

Re: New API Endpoints! Wireless Health, Alert Settings, Enabling VLANs, Syslog and more!

Nevermind. I had single quotes where I needed double quotes.

 

Carry on. Nothing to see here..... lol

Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.