Using azure-sdk-for-python with azure.com

Python integration

✓ Official SDK
Install
pip install azure-sdk-for-python
Quick start
import azure-sdk-for-python

# Use an OAuth2 access token
client = azure_sdk_for_python.Client(access_token="YOUR_ACCESS_TOKEN")
List all the existing Smart Detector alert rules within the subscription.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  /subscriptions/{subscriptionId}/providers/microsoft.alertsManagement/smartDetectorAlertRules
List all the existing Smart Detector alert rules within the subscription and …
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules
Get a specific Smart Detector alert rule.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName}
SDK on GitHub 📄 API Docs
SDK
azure-sdk-for-python
Python
API
azure.com
azure.com:alertsmanagement-SmartDetectorAlertRulesApi
At a glance
Language Python
Endpoints6
✓ Official