The Meraki PowerShell module provides a set of 644 cmdlets for managing and interacting with the Cisco Meraki cloud-based network management platform. This module allows you to automate common tasks and manage your Meraki network using PowerShell.
Current Progress: Commands have been written for all endpoints, but I do not have the capability to test all of the commands (if someone from Cisco is reading this feel free to send a box of everything you make + licensing for me to test with...). About 80% of the Get- commands have been tested, but I've only had the oppoortunity to test a small portion of the commands starting with Invoke-, New-, Remove-, or Set-. The method is the same for every request, so they should all work as long as the JSON is properly formatted to what the API expects and I don't have a typo in the script somewhere. For up-to-date examples check the Meraki API Documentation for the endpoint you're trying to access.
NOTE: This module and its documentation were created and are currently maintained by Alex Heimbuch. This is not an official Cisco product and should be used with caution. This current work in progress and this document is subject to periodic change as the functionality expands.
Before you can use the Meraki PowerShell module, you need to meet the following prerequisites:
The easist way to install the module is from the PowerShell Gallery with PSGet using the following command:
Install-Module -Name Meraki
To install the Meraki PowerShell module, follow these steps:
Import-Module Meraki
Get-MerakiNetworkPoliciesByClient -AuthToken "your-api-token" -perPage 5 -timespan 200
$NetworkConfig = [PSCustomObject]@{ "name" = "Main Office" "productTypes" = @("appliance", "switch", "wireless") "tags" = @("tag1", "tag2") "timeZone" = "America/Los_Angeles" "copyFromNetworkId" = "N_24329156" "notes" = "Additional description of the network" } $NetworkConfig = $NetworkConfig | ConvertTo-JSON -compress New-MerakiOrganizationNetwork -AuthToken "your-api-token" -NetworkConfig $NetworkConfig
ConvertTo-JSON -compress
$NetworkConfig = $NetworkConfig | ConvertTo-JSON -compress
Owner
Contributors
Categories
Products
MerakiProgramming Languages
PowerShellLicense
Code Exchange Community
Get help, share code, and collaborate with other developers in the Code Exchange community.View Community