Skip to content

Commit

Permalink
Get-TssRpcPasswordType - correct endpoint, parameter help
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmelton committed Nov 5, 2021
1 parent 8be9347 commit 8a84435
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/commands/rpc/Get-TssRpcPasswordType.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Accept wildcard characters: False
```
### -Id
Short description for parameter
Password Type ID
```yaml
Type: Int32[]
Expand Down
5 changes: 2 additions & 3 deletions src/functions/rpc/Get-TssRpcPasswordType.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function Get-TssRpcPasswordType {
[Thycotic.PowerShell.Authentication.Session]
$TssSession,

# Short description for parameter
# Password Type ID
[Parameter(Mandatory, ValueFromPipelineByPropertyName)]
[Alias('PasswordTypeId')]
[int[]]
Expand All @@ -39,14 +39,13 @@ function Get-TssRpcPasswordType {
$tssParams = $PSBoundParameters
$invokeParams = . $GetInvokeApiParams $TssSession
}

process {
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
Compare-TssVersion $TssSession '10.9.000000' $PSCmdlet.MyInvocation
foreach ($passwordType in $Id) {
$restResponse = $null
$uri = $TssSession.ApiUrl, 'rpc', 'password-types', $passwordType -join '/'
$uri = $TssSession.ApiUrl, 'remote-password-changing', 'password-types', $passwordType -join '/'
$invokeParams.Uri = $uri
$invokeParams.Method = 'GET'

Expand Down

0 comments on commit 8a84435

Please sign in to comment.