pspete / psPAS

PowerShell module for CyberArk Privileged Access Security REST API
https://pspas.pspete.dev
MIT License
286 stars 90 forks source link

Request to add PTA to Get-PASComponentDetail #453

Closed rehmulus closed 1 year ago

rehmulus commented 1 year ago

Describe the issue I want to get the component details for PTA.

To Reproduce

Get-PASComponentDetail -ComponentID 'PTA'

Expected behavior PowerShell object of the PTA component(s) like the other components are returned.

Console Output

Cannot validate argument on parameter 'ComponentID'. The argument "PTA" does not belong to the set
 "PVWA,SessionManagement,CPM,AIM" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the command again.

Your Environment

Additional context The ComponentID parameter in CyberArk Rest API accepts 'PTA' since version 12.0: cf. System Details 12.0 and 11.7. The parameter in Get-PASComponentDetail.ps1 does not accept 'PTA' probably because the script checks against version 10.1.

pspete commented 1 year ago

Hi @rehmulus ,

Thanks for raising this - had missed the inclusion of the parameter in the docs and should be able to make this available in the next module release.