I want to list azure security center alerts using the python SDK.
I found this package: https://pypi.org/project/azure-mgmt-security/
It must be included in the microsoft documentation:
https://learn.microsoft.com/en-gb/python/azure/?view=azure-python https://github.com/Azure/azure-sdk-for-python
but I can not find any reference or example.
Does anyone know where I can find this information?
Best regards.
I can just give a rough reference.
After install the package azure-mgmt-security, you should use
List
method in the package, source code is here.Here is the the doc on how to authentication. Here is doc on how to get tenantId / client_id / key.
Here is my code:
Also, you can use List Alerts api with a http request in python.