Using litellm with azure.com

Python integration

Install
pip install litellm
Quick start
import litellm

# Use an OAuth2 access token
client = litellm.Client(access_token="YOUR_ACCESS_TOKEN")
Lists all operations available Azure Security Insights Resource Provider.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  /providers/Microsoft.SecurityInsights/operations
Gets all alert rules.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRules
Gets all data connectors.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/dataConnectors
SDK on GitHub 📄 API Docs
SDK
litellm
Python
API
azure.com
azure.com:securityinsights-SecurityInsights
At a glance
Language Python
Endpoints13