This is an python sample to call foglight restful api.
| File Name | Description |
|---|---|
| init.cfg | configuration file, configure username, password and so on. |
| init.py | http client utility for call foglight restful apis. |
| sample-login.py | python sample for call login related restful apis. |
| sample.py | python sampele for call login-excluded restful apis. |
Before run the sample, you need to configure the parameters in init.cfg, then you can run either sample-login.py or sample.py. Some of the call methods are commented inside sample.py, you need to configure the related parameters in init.cfg, and then you can uncomment the methods to run the samples.