Functions/Connectors/Get-RAConnector.ps1
|
function Get-RAConnector { [CmdletBinding()] param ( [Parameter( Helpmessage = 'The site ID you want to check the connectors in', Mandatory = $true )] [string]$siteID ) begin { } process { $url = "https://$($Script:ApiURL)/v2-edge/connectors/$siteID" $restCall = @{ 'Method' = 'Get' 'Uri' = $url 'WebSession' = $Script:WebSession } $result = Invoke-RestMethod @restCall } end { Write-Output -InputObject $result } } |