Functions/Connections/Get-PASConnectionComponent.ps1

# .ExternalHelp psPAS-help.xml
Function Get-PASConnectionComponent {
    [CmdletBinding()]
    param(    )

    BEGIN {

        Assert-VersionRequirement -RequiredVersion 11.5

    }#begin

    PROCESS {


        #Create URL for request
        $URI = "$Script:BaseURI/API/PSM/Connectors"

        #send request to web service
        $result = Invoke-PASRestMethod -Uri $URI -Method GET -WebSession $Script:WebSession

        if ($null -ne $result.PSMConnectors) {

            $result | Select-Object -ExpandProperty PSMConnectors

        }

    }#process

    END { }#end

}