Get-VPASAllowedIPs


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

GET ALLOWED IPS


Description:

USE THIS FUNCTION TO GET ALLOWED IPS FROM PRIVILEGE CLOUD SHARED SERVICES


Syntax:

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

$AllowedIPsJSON = Get-VPASAllowedIPs


Outputs:

If successful:
{
         "lastTaskId": "a9b8c7d6-e54f-32g1-0hij-k12l3456mnop",
         "dateUpdated": "2024-08-16T03:27:42.759Z",
         "customerPublicIPs": [
                 "1.1.1.1/32",
                 "2.2.2.2/32"
         ],
         "updateInProgress": false
}

$false if failed