scripts written to interact with mongodb cloud api
Project description
======
macapi
======
|Python 27|
**What is macapi?** macapi is a tool used to easily access MongoDB Atlas by leverating its resful api. It's primarily used to easilty adminsiter Atlas clusters and groups.
.. figure:: https://github.com/dmcna005/macapi/blob/master/macapi.png
:alt: macapi
--------------------------------------------------
Installation
------------
.. code-block:: console
$ pip install macapi
**The toolkit constists of the following tools**:
``alerts``
~~~~~~~~~~
Used to get and create alert configuration for a single group.
.. code-block:: console
$ alerts -h
usage: alerts [-h] [-G] [-U] [-C] [-D] [-f FILE] -g GROUP_ID -u API_USER -k
API_KEY
optional arguments:
-h, --help show this help message and exit
-G, --get get a group alert and monitoring configuration
-U, --update update current alerts configuration
-C, --create replace current alerts confifuration
-D, --delete delte a single alert
-f FILE, --file FILE write file to current directory unless absolute path
is provided
-g GROUP_ID, --group_id GROUP_ID
-u API_USER, --api_user API_USER
-k API_KEY, --api_key API_KEY
``cluster``
~~~~~~~~~~~
Used to create and modify cluster configurations for a given group.
.. code-block:: console
$ cluster -h
usage: cluster [-h] [-G] [-C] [-f FILE] -n NAME -g GROUP_ID -u API_USER -k
API_KEY [-D] [--resize] [--size SIZE] [--nodes NODES]
[--shards SHARDS]
optional arguments:
-h, --help show this help message and exit
-G, --get get's the currnet group cluster configuration
-C, --create creates a new cluster
-f FILE, --file FILE write file to current directy or path
-n NAME, --name NAME the name of the cluster
-g GROUP_ID, --group_id GROUP_ID
id of the group that you are trying to make the
changes for
-u API_USER, --api_user API_USER
the email address you use to login
-k API_KEY, --api_key API_KEY
Your Atlas api key
-D, --delete deletes a cluster from a project
--resize resizes an instace
--size SIZE size of an instance in ['M10',...,'M60']
--nodes NODES number of nodes per shard or replicaSet
--shards SHARDS number of replicaSets to deploy
``ip_whitelist``
~~~~~~~~~~~~~~~~
Used to create, delete, update and getip whitelist information for a single group in Atlas.
.. code-block:: console
$ ipwhitelist -h
usage: ipwhitelist [-h] [-G] [-C] [-D] [-f FILE] -g GROUP_ID -u API_USER -k
API_KEY
optional arguments:
-h, --help show this help message and exit
-G, --get get's the currnet group IP Whitelist
-C, --create replace current alerts confifuration
-D, --delete delte a single alert
-f FILE, --file FILE write file to current directory unless absolute path
is provided
-g GROUP_ID, --group_id GROUP_ID
id of the group that you are trying to make the
changes for
-u API_USER, --api_user API_USER
the email address you use to login
-k API_KEY, --api_key API_KEY
Your Atlas api key
.. |Python 27| image:: https://img.shields.io/badge/Python-2.7-brightgreen.svg?style=flat
:target: http://python.org
macapi
======
|Python 27|
**What is macapi?** macapi is a tool used to easily access MongoDB Atlas by leverating its resful api. It's primarily used to easilty adminsiter Atlas clusters and groups.
.. figure:: https://github.com/dmcna005/macapi/blob/master/macapi.png
:alt: macapi
--------------------------------------------------
Installation
------------
.. code-block:: console
$ pip install macapi
**The toolkit constists of the following tools**:
``alerts``
~~~~~~~~~~
Used to get and create alert configuration for a single group.
.. code-block:: console
$ alerts -h
usage: alerts [-h] [-G] [-U] [-C] [-D] [-f FILE] -g GROUP_ID -u API_USER -k
API_KEY
optional arguments:
-h, --help show this help message and exit
-G, --get get a group alert and monitoring configuration
-U, --update update current alerts configuration
-C, --create replace current alerts confifuration
-D, --delete delte a single alert
-f FILE, --file FILE write file to current directory unless absolute path
is provided
-g GROUP_ID, --group_id GROUP_ID
-u API_USER, --api_user API_USER
-k API_KEY, --api_key API_KEY
``cluster``
~~~~~~~~~~~
Used to create and modify cluster configurations for a given group.
.. code-block:: console
$ cluster -h
usage: cluster [-h] [-G] [-C] [-f FILE] -n NAME -g GROUP_ID -u API_USER -k
API_KEY [-D] [--resize] [--size SIZE] [--nodes NODES]
[--shards SHARDS]
optional arguments:
-h, --help show this help message and exit
-G, --get get's the currnet group cluster configuration
-C, --create creates a new cluster
-f FILE, --file FILE write file to current directy or path
-n NAME, --name NAME the name of the cluster
-g GROUP_ID, --group_id GROUP_ID
id of the group that you are trying to make the
changes for
-u API_USER, --api_user API_USER
the email address you use to login
-k API_KEY, --api_key API_KEY
Your Atlas api key
-D, --delete deletes a cluster from a project
--resize resizes an instace
--size SIZE size of an instance in ['M10',...,'M60']
--nodes NODES number of nodes per shard or replicaSet
--shards SHARDS number of replicaSets to deploy
``ip_whitelist``
~~~~~~~~~~~~~~~~
Used to create, delete, update and getip whitelist information for a single group in Atlas.
.. code-block:: console
$ ipwhitelist -h
usage: ipwhitelist [-h] [-G] [-C] [-D] [-f FILE] -g GROUP_ID -u API_USER -k
API_KEY
optional arguments:
-h, --help show this help message and exit
-G, --get get's the currnet group IP Whitelist
-C, --create replace current alerts confifuration
-D, --delete delte a single alert
-f FILE, --file FILE write file to current directory unless absolute path
is provided
-g GROUP_ID, --group_id GROUP_ID
id of the group that you are trying to make the
changes for
-u API_USER, --api_user API_USER
the email address you use to login
-k API_KEY, --api_key API_KEY
Your Atlas api key
.. |Python 27| image:: https://img.shields.io/badge/Python-2.7-brightgreen.svg?style=flat
:target: http://python.org
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
macapi-1.0.5.tar.gz
(12.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
macapi-1.0.5-py2-none-any.whl
(15.1 kB
view details)
File details
Details for the file macapi-1.0.5.tar.gz.
File metadata
- Download URL: macapi-1.0.5.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d73bc5117ce06dd37c5439bc0a4047564f57f4523ebe3eb9ed5361108b48626
|
|
| MD5 |
f686e62e1442a030d8baad2ea991001e
|
|
| BLAKE2b-256 |
521263274081afadcd887082768813f6f1e0a20497588946527c64e72ac45452
|
File details
Details for the file macapi-1.0.5-py2-none-any.whl.
File metadata
- Download URL: macapi-1.0.5-py2-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f596f4727b28b000ea66dc96aa66e668f42f48fbeeafe62f6456b356a0382718
|
|
| MD5 |
a7d3793a46a1211e743cfee4a27fcb81
|
|
| BLAKE2b-256 |
ffa6f2c00317000043841c33b4b7b8f4981ed9c51a5fc29f162b33326a6c9942
|