Public/Get-MerakiDeviceLiveToolsArpTable.ps1

function Get-MerakiDeviceLiveToolsArpTable {
    <#
    .SYNOPSIS
    Retrieves the details of an ARP table retrieval action for a specified device.
 
    .DESCRIPTION
    This function allows you to retrieve the details of an ARP table retrieval action for a specified device by providing the authentication token, device serial number, and the ARP table ID.
 
    .PARAMETER AuthToken
    The authentication token (API key) required to access the Meraki Dashboard API.
 
    .PARAMETER Serial
    The serial number of the device.
 
    .PARAMETER ArpTableId
    The ID of the ARP table retrieval action.
 
    .EXAMPLE
    Get-MerakiDeviceLiveToolsArpTable -AuthToken "your-api-token" -Serial "Q2XX-XXXX-XXXX" -ArpTableId "arpTableId1"
 
    This example retrieves the details of the ARP table retrieval action with ID "arpTableId1" for the device with serial number "Q2XX-XXXX-XXXX".
 
    .NOTES
    For more information about the Meraki API, visit https://developer.cisco.com/meraki/api-v1/.
    #>

    [CmdletBinding()]
    param (
        [parameter(Mandatory=$true)]
        [string]$AuthToken,
        [parameter(Mandatory=$true)]
        [string]$Serial,
        [parameter(Mandatory=$true)]
        [string]$ArpTableId
    )

    try {
        $header = @{
            "X-Cisco-Meraki-API-Key" = $AuthToken
            "content-type" = "application/json; charset=utf-8"
        }

        $url = "https://api.meraki.com/api/v1/devices/$Serial/liveTools/arpTable/$ArpTableId"

        $response = Invoke-RestMethod -Method Get -Uri $url -headers $header -UserAgent "MerakiPowerShellModule/1.1.2 DocNougat"
        return $response
    }
    catch {
        Write-Debug $_
        Throw $_
    }
}