Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jbbriel/cloudflare-py
Script to enable and disable pools in CF Load Balancers
https://github.com/jbbriel/cloudflare-py
Last synced: 10 days ago
JSON representation
Script to enable and disable pools in CF Load Balancers
- Host: GitHub
- URL: https://github.com/jbbriel/cloudflare-py
- Owner: jbbriel
- Created: 2019-11-11T15:10:41.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T22:17:25.000Z (over 1 year ago)
- Last Synced: 2024-08-01T12:24:53.796Z (3 months ago)
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CloudFlare Script
Script to enable and disable pools in CF Loadbalancers. Useful for deployments that are being executed in productions
## Installation```bash
pip install -r requirements.txt
```## Example commands
```bash
# Disables pool pool
python cloudflare.py --pool ${CF_POOL_NAME} --authemail ${CF_EMAIL} --authkey ${CF_AUTH_KEY} --lbname ${CF_LB_NAME}
.com# Enables specified pool
python cloudflare.py --pool ${CF_POOL_NAME} --authemail ${CF_EMAIL} --authkey ${CF_AUTH_KEY} --lbname ${CF_LB_NAME}
.com --enabled
```### Arguement List
```bash
'--pool', required=True, help='name of the pool to be updated'
'--lbname', required=True, help='name of the load balancer'
'--authkey', required=True, help='CloudFlare API key'
'--authemail', required=True, help='email associated with CloudFlare API key'
'--enabled', action='store_true', help='Enables pool if specified, else it defaults to False
```## Contributing
Contributing is allowed. Dont be afraid to make changes. :-)