No description or website provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
dockerfile
modo-count.py

README.md

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