DataDog / datadog-api-client-python

Python client for the Datadog API

Home Page:https://datadoghq.dev/datadog-api-client-python/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to use 'list_security_monitoring_signals' or 'search_security_monitoring_signals'

mtskillman opened this issue · comments

Describe the bug
Both of the operations mentioned in the title of this report are said to be "disabled" by the sdk despite being documented in Datadog documentation + these operations will work if you modify the source of the sdk.

To Reproduce
Steps to reproduce the behavior:

run something like this:
...
api_instance = SecurityMonitoringApi(api_client)
response = api_instance.search_security_monitoring_signals(body=body)

Expected behavior
The api client should allow these operations to be performed.

Screenshots
image

Environment and Versions (please complete the following information):
datadog-api-client 1.12
python 3.8.12

Hi,

Those operations are just out of beta, so the client has been released yet. For your version you need to add configuration.unstable_operations["search_security_monitoring_signals"] = True to be able to use it (and same for list). his is described in the README here: https://github.com/DataDog/datadog-api-client-python#unstable-endpoints.

Thanks

thank you @therve