Get-VPASDPAStrongAccountDetails


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

GET DPA STRONG ACCOUNT DETAILS


Description:

USE THIS FUNCTION TO RETRIEVE STRONG ACCOUNT DETAILS FROM DPA


Syntax:

Get-VPASDPAStrongAccountDetails [[-StrongAccountID] <String>] [[-StrongAccountName] <String>] [[-token] <Hashtable>] [<CommonParameters>]


Parameters:

-StrongAccountID <String>
UniqueID of the target strong account in DPA

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

-StrongAccountName <String>
Unique name of the target strong account in DPA

Required: false
Position: 2
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: 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:

$StrongAccountDetails = Get-VPASDPAStrongAccountDetails -StrongAccountID {STRONG ACCOUNT ID VALUE}

$StrongAccountDetails = Get-VPASDPAStrongAccountDetails -StrongAccountName {STRONG ACCOUNT NAME VALUE}


Outputs:

If successful:
{
         "secret_id": "9284iujwedfh-3456-6788-dggd-flk03945",
         "tenant_id": "lkajd0890-1111-aaaa-sdf4-slkfj3089443890",
         "secret": {
                 "secret_data": "haytbv4r76q4d6qi4rtq3486r9q87n9j47sdr8734hdr97834tr7dbq87hsj72839r723jr723ht4r81bt47cnr97384jrd78/iCA",
                 "tenant_encrypted": true
         },
         "secret_type": "PCloudAccount",
         "secret_details": {
                 "certFileName": "",
                 "account_domain": "vman.com"
         },
         "is_active": true,
         "is_rotatable": false,
         "creation_time": "2024-07-12T02:19:27",
         "last_modified": "2024-07-12T02:19:27",
         "secret_name": "VpasAPIStrongAccount2_VpasAPI"
}

$false if failed