Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 700 Bytes

usage.rst

File metadata and controls

24 lines (16 loc) · 700 Bytes

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:

from sdcclient import SdMonitorClient

api_token = "MY_API_TOKEN"

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