infamousjoeg / cybr-cli

A "Swiss Army Knife" command-line interface (CLI) for easy human and non-human interaction with @CyberArk suite of products.
Apache License 2.0
72 stars 16 forks source link

cybr platforms list does not work properly on PVWA version 12.6 #172

Closed strick-j closed 1 year ago

strick-j commented 2 years ago

Description When attempting to use "cybr cli list" a status code 500 error is returned.

Reproduce behavior Steps to reproduce the behavior:

  1. Authenticate: "cybr logon -u $username -b $baseurl -a $authtype"
  2. List Platforms: "cybr platforms list" or "cybr platforms list -a"
  3. See error

Expected behavior Expect to see a list of inactive and active platforms. If the -a flag is used then I expect to see only active platforms.

Screenshots image

Desktop (please complete the following information):

CyberArk Version :

infamousjoeg commented 2 years ago

@strick-j,

My tests are successful using cybr-cli v0.1.12-beta with the following CyberArk version:

{
    "ExternalVersion": "12.6.0",
    "InternalVersion": "12.6.0.40",
    "ServerName": "Vault"
}

Can you run cybr version and let me know what is returned? I suspect you may be on an older version than latest.

strick-j commented 1 year ago

Please disregard. There was an issue with platforms in my environment as described here: https://cyberark-customers.force.com/s/article/pCloud-Get-Platforms-API-returns-CAWS00001E-The-given-key-was-not-present-in-the-dictionary