Get-VPASAllPSMServers


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

GET ALL PSM SERVERS IN CYBERARK


Description:

USE THIS FUNCTION TO GET ALL PSM SERVERS FROM CYBERARK


Syntax:

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

$AllPSMServersJSON = Get-VPASAllPSMServers


Outputs:

If successful:
{
         "PSMServers": [
                 {
                         "ID": "PSMServer_VmanConnector01",
                         "Name": "PSM Server on VmanConnector01",
                         "Address": "192.168.111.111"
                 },
                 {
                         "ID": "PSMServer_VmanConnector02",
                         "Name": "PSM Server on VmanConnector02",
                         "Address": "192.168.222.222"
                 }
         ],
         "Total": 2
}

$false if failed