Functions/Applications/Get-PASApplicationAuthenticationMethod.ps1

# .ExternalHelp psPAS-help.xml
function Get-PASApplicationAuthenticationMethod {
    [CmdletBinding()]
    param(
        [parameter(
            Mandatory = $true,
            ValueFromPipelinebyPropertyName = $true
        )]
        [string]$AppID
    )

    BEGIN { }#begin

    PROCESS {

        $URI = "$Script:BaseURI/WebServices/PIMServices.svc/Applications/$($AppID |

            Get-EscapedString)/Authentications/"


        $result = Invoke-PASRestMethod -Uri $URI -Method GET -WebSession $Script:WebSession

        If ($null -ne $result) {

            $result.authentication | Add-ObjectDetail -typename psPAS.CyberArk.Vault.ApplicationAuth

        }

    }#process

    END { }#end

}