Get-VPASSafeDetails


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

GET SAFE DETAILS


Description:

USE THIS FUNCTION TO GET SAFE DETAILS FOR A SPECIFIED SAFE


Syntax:

Get-VPASSafeDetails [-safe] <String> [[-IncludeAccounts]] [[-token] <Hashtable>] [<CommonParameters>]


Parameters:

-safe <String>
Target unique safe name

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

-IncludeAccounts [<SwitchParameter>]
Switch if to include accounts in the return value or not

Required: false
Position: 2
Default value: False
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: 3
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:

$SafeDetailsJSON = Get-VPASSafeDetails -safe {SAFE VALUE}


Outputs:

If successful:
{
         "safeUrlId": "TestSafe",
         "safeName": "TestSafe",
         "safeNumber": 121,
         "description": "",
         "location": "\\",
         "creator": {
                 "id": "876kjsf-4554364-lkfjg-9bc1-skjdhf876345",
                 "name": "vadim@vman.com"
         },
         "olacEnabled": false,
         "managingCPM": "",
         "numberOfVersionsRetention": null,
         "numberOfDaysRetention": 7,
         "autoPurgeEnabled": false,
         "creationTime": 1715299864,
         "lastModificationTime": 1724029250038895,
         "accounts": [
                 {
                         "id": "121_4",
                         "name": "Operating System-WinDomain-vman.com-testdomainuser01"
                 },
                 {
                         "id": "121_5",
                         "name": "Operating System-WinDomain-vman.com-testdomainuser02"
                 }
         ],
         "isExpiredMember": false
}

$false if failed