Get-VPASAllGroupPlatforms


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

GET ALL GROUP PLATFORMS


Description:

USE THIS FUNCTION TO GET ALL GROUP PLATFORMS


Syntax:

Get-VPASAllGroupPlatforms [-ExportToCSV] [-CSVDirectory <String>] [-token <Hashtable>] [<CommonParameters>]

Get-VPASAllGroupPlatforms -InputParameters <Hashtable> [-token <Hashtable>] [<CommonParameters>]


Parameters:

-ExportToCSV [<SwitchParameter>]
Output results to a CSV file found in AppData\Local\VPASModuleOutputs directory

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

-CSVDirectory <String>
Output directory where the exported CSV file will be saved to
Default value: C:\Users\{CurrentUser}\AppData\Local\VPASModuleOutputs\ExportedCSVs

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

-InputParameters <Hashtable>
HashTable of values containing the parameters required to make the API call

Required: true
Position: named
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: named
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:

$AllGroupPlatformsJSON = Get-VPASAllGroupPlatforms

$InputParameters = @{
        ExportToCSV = $true|$false
         CSVDirectory = "C:\Temp"
}
$AllGroupPlatformsJSON = Get-VPASAllGroupPlatforms -InputParameters $InputParameters


Outputs:

If successful:
{
         "Platforms": [
                 {
                         "Active": true,
                         "ID": 44,
                         "PlatformID": "GroupMasterVpasModule",
                         "Name": "GroupMasterVpasModule"
                 },
                 {
                         "Active": false,
                         "ID": 33,
                         "PlatformID": "SampleGroup",
                 "Name": "[Sample Password Group Platform]"
                 },
                 {
                         "Active": false,
                         "ID": 34,
                         "PlatformID": "SampleSSHKeyGroup",
                 "Name": "[Sample SSH Key Group Platform]"
                 }
         ],
         "Total": 3
}

$false if failed