Get-VPASAllUsagePlatforms


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

GET ALL USAGE PLATFORMS


Description:

USE THIS FUNCTION TO GET ALL USAGE PLATFORMS


Syntax:

Get-VPASAllUsagePlatforms [[-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:

$AllUsagePlatformsJSON = Get-VPASAllUsagePlatforms


Outputs:

If successful:
{
         "Platforms": [
                 ...
                 {
                         "NumberOfLinkedTargetPlatforms": 1,
                 "CredentialsManagementPolicy": "@{Change=}",
                         "ID": 8,
                         "PlatformID": "INIFile",
                         "Name": "INI File",
                         "PlatformBaseType": "INIFile",
                         "PlatformBaseID": "INIFile"
                 },
                 {
                         "NumberOfLinkedTargetPlatforms": 0,
                 "CredentialsManagementPolicy": "@{Change=}",
                         "ID": 14,
                         "PlatformID": "NewUsagePlatform",
                         "Name": "NewUsagePlatform",
                         "PlatformBaseType": "INIFile",
                         "PlatformBaseID": "INIFile"
                 },
                 {
                         "NumberOfLinkedTargetPlatforms": 25,
                 "CredentialsManagementPolicy": "@{Change=}",
                         "ID": 7,
                         "PlatformID": "WinService",
                         "Name": "Windows Service",
                         "PlatformBaseType": "WinService",
                         "PlatformBaseID": "WinService"
                 },
                 ...
         ],
         "Total": 14
}

$false if failed