Skip to content

Latest commit

 

History

History
60 lines (47 loc) · 1.45 KB

README.md

File metadata and controls

60 lines (47 loc) · 1.45 KB

Modoboa count

langage

usage: modo-count.py [-h] -r EMAIL -t TOKEN -a URL [-o json/read]

optional arguments:
  -h, --help            show this help message and exit
  -r EMAIL, --reseller EMAIL
                        precise email of the reseller
  -t TOKEN, --token TOKEN
                        Token for access to data
  -a URL, --api URL     precise url modoboa
  -o json/read, --output json/read
                        precise output : json/read

Usage

python3 modo-count.py -r <EMAIL> -t <TOKEN> -a <URL>

or

python3 modo-count.py -r <EMAIL> -t <TOKEN> -a <URL> -o json

The output is going to be formated in JSON by default

Format output for terminal usage

python3 modo-count.py -r <EMAIL> -t <TOKEN> -a <URL> -o read

Docker usage

The output is going to be formated in JSON by default

Build

docker build -t <NAME:VERSION> .

Run

docker run <NAME:VERSION> -r <EMAIL> -t <TOKEN> -a <URL>

or

docker run <NAME:VERSION> -r <EMAIL> -t <TOKEN> -a <URL> -o json
docker run <NAME:VERSION> -r <EMAIL> -t <TOKEN> -a <URL> -o read

License

Apache 2.0 Licence

This project is licensed under the Apache 2.0 license - see the LICENSE file for details.

Author Information

This role was created in 11/10/2018 by PG3