|
1 |
| -Sysdig Cloud python client library |
| 1 | +Sysdig Cloud Python client library |
2 | 2 | ===
|
3 | 3 |
|
4 | 4 | [](https://travis-ci.org/draios/python-sdc-client)
|
5 | 5 | [](https://pypi.python.org/pypi/sdcclient)
|
6 | 6 |
|
7 |
| -A python client API for Sysdig Cloud. |
| 7 | +A Python client API for Sysdig Cloud. |
8 | 8 |
|
9 |
| -This module is a wrapper around the Sysdig Cloud API, which is documented [here](http://support.sysdigcloud.com/hc/en-us/articles/205233166-The-Sysdig-Cloud-API-Specification). It exposes most of the sysdig REST API functionality as an easy to use and easy to install python interface. The repository includes a rich set of examples (in the [examples](examples/) subdir) that quickly address several use cases. |
| 9 | +This module is a wrapper around the Sysdig Cloud API, which is documented [here](http://support.sysdigcloud.com/hc/en-us/articles/205233166-The-Sysdig-Cloud-API-Specification). It exposes most of the sysdig REST API functionality as an easy to use and easy to install Python interface. The repository includes a rich set of examples (in the [examples](examples/) subdir) that quickly address several use cases. |
10 | 10 |
|
11 | 11 | Installation
|
12 | 12 | ------------
|
@@ -56,12 +56,28 @@ Function List
|
56 | 56 |
|
57 | 57 | Please Refer to the [Python Script Library documentation page](http://python-sdc-client.readthedocs.io/en/latest/) for the list of functions available.
|
58 | 58 |
|
59 |
| -Transitioning from python to REST |
| 59 | +On-Premises Installs |
| 60 | +-------------------- |
| 61 | +For [On-Premises Sysdig Cloud installs](https://support.sysdigcloud.com/hc/en-us/articles/206519903-On-Premises-Installation-Guide), additional configuration is necessary to point to your API server rather than the default SaaS-based one, and also to easily connect when using a self-signed certificate for SSL. One way to handle this is by setting environment variables before running your Python scripts: |
| 62 | + |
| 63 | +``` |
| 64 | +export SDC_URL='https://<YOUR-API-SERVER-HOSTNAME-OR-IP>' |
| 65 | +export SDC_SSL_VERIFY='false' |
| 66 | +``` |
| 67 | + |
| 68 | +Alternatively, you can specify the additional arguments in your Python scripts as you instantiate the SDC client: |
| 69 | + |
| 70 | +``` |
| 71 | +sdclient = SdcClient(sdc_token, sdc_url='https://<YOUR-API-SERVER-HOSTNAME-OR-IP>', ssl_verify=False) |
| 72 | +``` |
| 73 | + |
| 74 | + |
| 75 | +Transitioning from Python to REST |
60 | 76 | ---------------------------------
|
61 | 77 |
|
62 |
| -If your goal is to interact with the REST API directly, you can use this python client library to understand the REST interactions by logging the actions it takes. This is useful because full documentation of the REST API has not yet been created; and also provides a complete example of known working operations. |
| 78 | +If your goal is to interact with the REST API directly, you can use this Python client library to understand the REST interactions by logging the actions it takes. This is useful because full documentation of the REST API has not yet been created; and also provides a complete example of known working operations. |
63 | 79 |
|
64 |
| -- Use or modify an example, or write a new script against the python sdcclient module. |
| 80 | +- Use or modify an example, or write a new script against the Python sdcclient module. |
65 | 81 | - Log the HTTP requests made by the script.
|
66 | 82 |
|
67 | 83 | To log all the requests made by your script in significant detail, add to your script:
|
|
0 commit comments