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 accounts get? #65

Closed adam0306 closed 3 years ago

adam0306 commented 3 years ago

Is your feature request related to a problem? Please describe. Feature Request

Describe the solution you'd like Add the ability to search for accounts to retrieve the Account ID to interact with accounts.

AndrewCopeland commented 3 years ago

How is this request different then the following implementation:

$ cybr account list -s test-ssh-key
{
    "value": [
        {
            "categoryModificationTime": 1611865949,
            "id": "110_15",
            "name": "Operating System-UnixSSHKeys-10.0.0.1-test-ssh-key",
            "address": "10.0.0.1",
            "userName": "test-ssh-key",
            "platformId": "UnixSSHKeys",
            "safeName": "CLI_ACCOUNTS_TEST",
            "secretType": "key",
            "platformAccountProperties": {},
            "secretManagement": {
                "automaticManagementEnabled": true,
                "status": "failure",
                "lastModifiedTime": 1611257354
            },
            "createdTime": 1611257354
        }
    ],
    "count": 1
}

The ID should be easily parsable from the returned json object.

adam0306 commented 3 years ago

It isn't. A case of user not familiar enough with the tool. Closing.

AndrewCopeland commented 3 years ago

You can find documentation on the cybr account command here: https://github.com/infamousjoeg/cybr-cli/blob/main/docs/cybr_accounts.md

Thanks for using the cybr-cli!