/py-atlas

Python API for the MongoDB Atlas API

Primary LanguagePythonApache License 2.0Apache-2.0

py-atlas

Python API for the MongoDB Atlas API

$ python py-atlas-main.py -h
usage: py-atlas-main.py [-h] [--username USERNAME] [--apikey APIKEY]
                        [--project_id PROJECT_ID] [--pause PAUSE_CLUSTER_NAME]
                        [--resume RESUME_CLUSTER_NAME] [--list]

optional arguments:
  -h, --help            show this help message and exit
  --username USERNAME   MongoDB Atlas username
  --apikey APIKEY       MongoDB Atlas API key
  --project_id PROJECT_ID
                        specify project for cluster that is to be paused
  --pause PAUSE_CLUSTER_NAME
                        pause named cluster in project specified by
                        --project_id
  --resume RESUME_CLUSTER_NAME
                        resume named cluster in project specified by
                        --project_id
  --list                List of the complete org hierarchy
(py-atlas-TaoD9bHw) bash-3.2$