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
71 stars 15 forks source link

`cybr ccp retrieve-account` #67

Closed AndrewCopeland closed 3 years ago

AndrewCopeland commented 3 years ago

Is your feature request related to a problem? Please describe. Currently I cannot use the cybr-cli with CCP.

Describe the solution you'd like I would like the ability to easily retrieve credentials from the CCP via the following command:

cybr ccp retrieve-account --url https://url-to-ccp.company.local --app-id AppID --query "Query=Safe=Billing;Object=MonthlyBilling" --field password

Addition Notes Extra flags may be required because:

infamousjoeg commented 3 years ago
  1. We should support more than just --query. I think --query is good for situations where the entire query is stored in an app, to prevent code changes to work with our CLI, but I also think we should provide separate flags for each query key, as well. --safe, --object, --username, etc.
  2. --field should support multiple comma-delimited values. Password is already a default returned value and doesn't need to be provided. Example: --field Address,UserName would return password, address, username.
AndrewCopeland commented 3 years ago

Sounds great! I am also thinking about have a --certificate flag for providing a certificate for authn