https://github.com/emcecs/ecs-account-usage
Creates a report and endpoint providing information about the usage of the storage per owner.
https://github.com/emcecs/ecs-account-usage
Last synced: over 1 year ago
JSON representation
Creates a report and endpoint providing information about the usage of the storage per owner.
- Host: GitHub
- URL: https://github.com/emcecs/ecs-account-usage
- Owner: EMCECS
- License: other
- Created: 2017-03-20T17:44:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-15T20:48:36.000Z (about 9 years ago)
- Last Synced: 2025-02-08T18:45:42.777Z (over 1 year ago)
- Language: Python
- Size: 23.4 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ecs-account-usage
Creates a basic report and a Swift compatible endpoint providing information about the usage of the ECS storage per bucket owner.
## Usage
### Get the help menu:
```python3 ./account_usage.py --help```
### Basic Report:
use:
```python3 ./account_usage.py -u ```
or:
```
python3 ./account_usage.py -e https://portal.ecstestdrive.com --token-endpoint https://portal.ecstestdrive.com/login -u -p -t temp.txt
```
### Launch the endpoint
use:
```python3 ./account_endpoint.py -u ```
or:
```
python3 ./account_endpoint.py -e https://portal.ecstestdrive.com --token-endpoint https://portal.ecstestdrive.com/login --username --password -t temp.txt -s https://swift.ecstestdrive.com --no-endpoint-ssl --port 5000
```
## Notes
The token used after a sucessful login is saved in /tmp. If you are using Windows you need to use the '-t c:\temp' to store the file in c:\temp
If you are planning to use SSL here is a good reference on how to generate a self-sign certificte
https://help.ubuntu.com/lts/serverguide/certificates-and-security.html
If you run into trouble installing the cryptographic library you may need to install the development tools for Python by running the following commmand:
Ubuntu:
```
$ sudo apt-get install build-essential libssl-dev libffi-dev python-dev
```
RHEL or Fedora:
```
$ sudo yum install gcc libffi-devel python-devel openssl-devel
```