This Command Line Interface (CLI) is a set of commands used to create and manage Dome9 resources. Developed to facilitate the daily use and help to work in agile methodologies (continuous-integration) This package consumes calls through the Dome9 Python SDK so it contains the same methods.
This CLI helps to work on Dome9 from our different agile services like Jenkins, Github or Travis, creating new rulesets, running assessments or listing our protected assets.
To install:
pip install --user dome9cli
dome9cli --help
Usage: dome9cli <command> <arguments>
Description: Create a compliance ruleset
Command: .\dome9cli.py create_ruleset jsonFile
Description: Delete a specific exclusion
Command: .\dome9cli.py delete_exclusion id=0
Description: Delete a specific remediation
Command: .\dome9cli.py delete_remediation id=0
Description: Delete a specific ruleset
Command: .\dome9cli.py delete_ruleset id=0
Description: Generate a ruleset template
Command: .\dome9cli.py generate_ruleset name=minimum, cloud=aws, rulesFile='./rules.json', desc='My description'
Description: Get a specific cloud account
Command: .\dome9cli.py get_cloud_account id=0
Description: Get a specific compliance ruleset
Command: .\dome9cli.py get_ruleset id=0
Description: List AWS Cloud accounts
Command: .\dome9cli.py list_aws_accounts
Description: List Azure Cloud accounts
Command: .\dome9cli.py list_azure_accounts
Description: List all cloud accounts (AWS, Azure, GCP and Kubernetes)
Command: .\dome9cli.py list_cloud_accounts
Description: List all exclusions
Command: .\dome9cli.py list_exclusions
Description: List Google Cloud accounts
Command: .\dome9cli.py list_google_accounts
Description: List Kubernetes accounts
Command: .\dome9cli.py list_kubernetes_accounts
Description: List all remediations
Command: .\dome9cli.py list_remediations
Description: List compliance rulesets
Command: .\dome9cli.py list_rulesets
Description: Run assessment and get report URL
Command: .\dome9cli.py run_assessment rulesetId=0, cloudAccountId=0000-0000-0000-0000