Get-VPASDPAAllPolicies


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

GET ALL DPA POLICIES


Description:

USE THIS FUNCTION TO RETRIEVE ALL POLICIES FROM DPA


Syntax:

Get-VPASDPAAllPolicies [[-token] <Hashtable>] [<CommonParameters>]


Parameters:

-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: 1
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:

$AllPolicies = Get-VPASDPAAllPolicies


Outputs:

If successful:
{
         "items": [
                 {
                         "policyId": "jakhdkja8792-jhgf-8769-b9ae-akhdjks879",
                         "status": "Enabled",
                         "policyName": "Vadim Access Policy",
                         "description": "",
                         "updatedOn": "2024-03-21 14:21:27.572710",
                         "ruleNames": "Test Rule",
                         "platforms": "OnPrem"
                 }
         ],
         "totalCount": 1
}

$false if failed