Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pplu/cloudhealth-cli
A CLI for CloudHealth
https://github.com/pplu/cloudhealth-cli
cli cloudhealth perl rest-api
Last synced: about 1 month ago
JSON representation
A CLI for CloudHealth
- Host: GitHub
- URL: https://github.com/pplu/cloudhealth-cli
- Owner: pplu
- Created: 2018-09-17T16:58:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-11T15:56:58.000Z (about 6 years ago)
- Last Synced: 2024-11-05T13:17:02.355Z (3 months ago)
- Topics: cli, cloudhealth, perl, rest-api
- Language: Perl
- Size: 11.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
CloudHealth CLI
===============A CLI for the CloudHealth API
Installing
==========- Build the container with the CLI `make container` in this repo
```
git clone [email protected]:pplu/cloudhealth-cli.git
cd cloudhealth-cli
make container
```It's convenient to define an alias for the `cloudhealth-cli` command:
```
alias cloudhealth-cli="docker run -eCLOUDHEALTH_APIKEY=$(echo \$CLOUDHEALTH_APIKEY) --rm cloudhealth-cli"
```- The CLI is also available via CPAN if you want to install it in your local system via the usual Perl Toolchain (cpan/cpanm/cpm, etc)
```
cpanm CloudHealth::CLI
```Running it
==========First you need an API Key to authenticate to the API. This can be found in the CloudHealth control panel, under your user profile, in the API Key section.
```
export CLOUDHEALTH_APIKEY=xxx
``````
cloudhealth-cli
```
Will show a help with the commands available:```
cloudhealth-cli AWSAccounts
```
Will run the AWSAccounts command```
cloudhealth-cli AWSAccounts help
```Will show that the AWSAccounts command accepts the `page` and `per_page` parameters:
```
cloudhealth-cli AWSAccounts page 2
```Will pass "2" as the value of the page parameter of AWSAccounts
Copyright
=========(c) 2018 CAPSiDE SL
Author
======Jose Luis Martinez Torres