Public/Get-MerakiNetworkWirelessSsidSplashSettings.ps1
function Get-MerakiNetworkWirelessSsidSplashSettings { <# .SYNOPSIS Retrieves splash settings for a wireless SSID in a Meraki network. .DESCRIPTION The Get-MerakiNetworkWirelessSsidSplashSettings function retrieves the splash settings for a wireless SSID in a Meraki network using the Meraki Dashboard API. You must provide an API key and the ID of the network and SSID. .PARAMETER AuthToken The Meraki Dashboard API key. .PARAMETER networkId The ID of the network that the SSID belongs to. .PARAMETER number The number of the SSID to retrieve the splash settings for. .EXAMPLE PS C:\> Get-MerakiNetworkWirelessSsidSplashSettings -AuthToken "your_api_key" -networkId "your_network_id" -number "1" Retrieves the splash settings for the first wireless SSID in the specified network. .NOTES For more information on the Meraki Dashboard API, see https://developer.cisco.com/meraki/api/. #> [CmdletBinding()] param ( [Parameter(Mandatory=$true)] [string]$AuthToken, [Parameter(Mandatory=$true)] [string]$networkId, [Parameter(Mandatory=$true)] [string]$number ) try { $header = @{ "X-Cisco-Meraki-API-Key" = $AuthToken } $response = Invoke-RestMethod -Method Get -Uri "https://api.meraki.com/api/v1/networks/$networkId/wireless/ssids/$number/splash/settings" -Header $header return $response } catch { Write-Error $_ } } |