private/Functions/Axis/Get-AxisDNSSettings.ps1
<#
//<device-address>/axis-cgi/network_settings.cgi { "apiVersion": <major>.<minor>, "context": <string>, "method": "getNetworkInfo", "params":{} } https://www.axis.com/vapix-library/subjects/t10175981/section/t10136094/display?section=t10136094-t10136252 #> Function Get-AxisDNSSettings { [cmdletBinding()] Param( [Parameter()] [hashtable]$Object ) <# Object Definition: @{ IP = [String(Mandatory)] Credential = [PSCredential(Mandatory)] } #> #Set basic Paramters for Invoke-AxisCommand $CamCmd = @{ Arguments = @{ IP = $Object.IP Menu = 'network' SubMenu = 'dns' Action = 'view' Parameters = @() } Credential = $Object.Credential } return (Invoke-AxisCommand @CamCmd).DNS } |