Usage

In order to use this API you must obtain a Sysdig Monitor/Secure API token. You can get your user’s token in the Sysdig Monitor API section of the settings page for monitor or secure.

The library exports two classes, SdMonitorClient and SdSecureClient that are used to connect to Sysdig Monitor/Secure and execute actions.

They can be instantiated like this:

1
2
3
4
5
6
from sdcclient import SdMonitorClient

api_token = "MY_API_TOKEN"

# Instantiate the Sysdig Monitor client
client = SdMonitorClient(api_token)