Package: atlascli
Atlascli - A Python API for MongoDB AtlasThe MongoDB database as a service offeringAtlasprovides
a complete and well documentedREST API.InstallationThe easiest way to install theatlascliis withpip.C:\Users\joe>pipinstallatlascli
Lookinginindexes:https://test.pypi.org/simple/
Processingc:\users\joe\appdata\local\pip\cache\wheels\6c\2f\e8\7f33b6b37b40424f1d00d54048aaa63fd47c7b289e790a997d\atlascli-0.2.5b5-py3-none-any.whl
Requirementalreadysatisfied:python-dateutilinc:\users\joe\.virtualenvs\joe-93pxapbd\lib\site-packages(fromatlascli)(2.8.1)Requirementalreadysatisfied:requestsinc:\users\joe\.virtualenvs\joe-93pxapbd\lib\site-packages(fromatlascli)(2.5.4.1)Requirementalreadysatisfied:six>=1.5inc:\users\joe\.virtualenvs\joe-93pxapbd\lib\site-packages(frompython-dateutil->atlascli)(1.10.0)Installingcollectedpackages:atlascli
Successfullyinstalledatlascli-0.2.5b

C:\Users\joe>Once the installation completes you can confirm it has worked by runningC:\Users\joe>atlascli-h
usage:atlascli[-h][--publickeyPUBLICKEY][--privatekeyPRIVATEKEY][--pausePAUSE_CLUSTER][--resumeRESUME_CLUSTER][--list][--listproj][--listcluster][--clusterCLUSTER][--project_idPROJECT_ID_LIST][--debug]Acommandlineprogramtolistorganizations,projectsandclustersona
MongoDBAtlasorganization.

optionalarguments:-h,--helpshowthishelpmessageandexit--publickeyPUBLICKEYMongoDBAtlaspublicAPIkey--privatekeyPRIVATEKEYMongoDBAtlasprivateAPIkey--pausePAUSE_CLUSTERpausenamedclusterinprojectspecifiedbyproject_idNotethatclustersthathavebeenresumedcannotbepausedforthenext60minutes--resumeRESUME_CLUSTERresumenamedclusterinprojectspecifiedbyproject_id--listListeverythingintheorganization--listprojListallprojects--listclusterListallclusters--clusterCLUSTERlistallelementsforforproject_id:cluster_name--project_idPROJECT_ID_LISTspecifyprojectforclusterthatistobepaused--debugTurnonloggingatdebuglevel

Version:0.2.5b5

C:\Users\joe>The Python Atlas API wraps the REST API in a more Pythonic
API based around anAtlasAPIclass.The library assumes the existence of two environment variables:ATLAS_PUBLIC_KEY: The public key value defined by theAtlas programmatic API keyATLAS_PRIVATE_KEY: The private key defined by the Atlas programmatic API
key.These can be passed in on the command line as well as parameters--publickeyand--privatekey.See the sectionbelowon how to create a programmatic Atlas API key.How to create an Atlas API KeyYou can create keys at the Organization level by selecting the access menu item
on the left hand side menu:Once you create a key you then need to assign it permissions. If you pick the
default youwill have to add this key explicitly to every project that you want
to manage via the API.On the next screen you can collect your API key. You will only get to see it
once so please make sure to take a copy.Not on this screen we obliterate part of the key so it can't been seen.Finally you need to whitelist any nodes that are going to originate API requests.You are now ready to start using your API key.Using your keysBoth parts of the key required to access your account. Rather than passing them
in on the command line theatlascliprogram these can read them from the environment
variablesATLAS_PRIVATE_KEYandATLAS_PUBLIC_KEY.