Get-VPASApplicationAuthentications


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

GET APPLICATION ID AUTHENTICATION METHODS


Description:

USE THIS FUNCTION TO GET ALL THE AUTHENTICATION METHODS FOR A SPECIFIED APPLICATION ID


Syntax:

Get-VPASApplicationAuthentications [-AppID] <String> [[-token] <Hashtable>] [<CommonParameters>]


Parameters:

-AppID <String>
Unique ApplicationID (or Application Name) that will be used by the credential provider(s) to retrieve credentials

Required: true
Position: 1
Default value:
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

-token <Hashtable>
HashTable of data containing various pieces of login information (PVWA, LoginToken, HeaderType, etc).
If -token is not passed, function will use last known hashtable generated by New-VPASToken

Required: false
Position: 2
Default value:
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug
ErrorAction, ErrorVariable, WarningAction, WarningVariable
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216)


Examples:

$ApplicationAuthenticationsJSON = Get-VPASApplicationAuthentication -AppID {APPID VALUE}


Outputs:

If successful:
{
         "authentication": [
                 {
                         "AllowInternalScripts": null,
                         "AppID": "VPasAppIDTest",
                         "AuthType": "osUser",
                         "AuthValue": "vman\\vmanda",
                         "Comment": null,
                         "IsFolder": null,
                         "authID": "1"
                 },
                 {
                         "AllowInternalScripts": "False",
                         "AppID": "VPasAppIDTest",
                         "AuthType": "path",
                         "AuthValue": "C:\\SomePath\\test.ps1",
                         "Comment": null,
                         "IsFolder": "False",
                         "authID": "2"
                 },
                 {
                         "AllowInternalScripts": "True",
                         "AppID": "VPasAppIDTest",
                         "AuthType": "path",
                         "AuthValue": "C:\\Folder",
                         "Comment": null,
                         "IsFolder": "True",
                         "authID": "3"
                 },
                 {
                         "AllowInternalScripts": null,
                         "AppID": "VPasAppIDTest",
                         "AuthType": "hash",
                         "AuthValue": "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
                         "Comment": null,
                         "IsFolder": null,
                         "authID": "4"
                 },
                 {
                         "AllowInternalScripts": null,
                         "AppID": "VPasAppIDTest",
                         "AuthType": "certificateSerialNumber",
                         "AuthValue": "82736423493648927527405",
                         "Comment": null,
                         "IsFolder": null,
                         "authID": "5"
                 },
                 {
                         "AllowInternalScripts": null,
                         "AppID": "VPasAppIDTest",
                         "AuthType": "machineAddress",
                         "AuthValue": "1.1.1.1",
                         "Comment": null,
                         "IsFolder": null,
                         "authID": "6"
                 }
         ]
}

$false if failed