{"files":{"SKILL.md":"---\nname: azure-alerts-management-service-resource-provider\ndescription: \"Azure Alerts Management Service Resource Provider API skill. Use when working with Azure Alerts Management Service Resource Provider for subscriptions. Covers 6 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# Azure Alerts Management Service Resource Provider\nAPI version: 2019-06-01\n\n## Auth\nOAuth2\n\n## Base URL\nhttps://management.azure.com\n\n## Setup\n1. Configure auth: OAuth2\n2. GET /subscriptions/{subscriptionId}/providers/microsoft.alertsManagement/smartDetectorAlertRules -- list all the existing smart detector alert rules within the subscription.\n3. Explore available endpoints below\n\n## Endpoints\n6 endpoints across 1 group. See references/api-spec.lap for full details.\n\n### Subscriptions\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /subscriptions/{subscriptionId}/providers/microsoft.alertsManagement/smartDetectorAlertRules | List all the existing Smart Detector alert rules within the subscription. |\n| GET | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules | List all the existing Smart Detector alert rules within the subscription and resource group. |\n| GET | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName} | Get a specific Smart Detector alert rule. |\n| PUT | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName} | Create or update a Smart Detector alert rule. |\n| PATCH | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName} | Patch a specific Smart Detector alert rule. |\n| DELETE | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName} | Delete an existing Smart Detector alert rule. |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"List all smartDetectorAlertRules?\" -> GET /subscriptions/{subscriptionId}/providers/microsoft.alertsManagement/smartDetectorAlertRules\n- \"Get smartDetectorAlertRule details?\" -> GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName}\n- \"Update a smartDetectorAlertRule?\" -> PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName}\n- \"Partially update a smartDetectorAlertRule?\" -> PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName}\n- \"Delete a smartDetectorAlertRule?\" -> DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName}\n- \"How to authenticate?\" -> See Auth section above\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Create/update endpoints return the modified resource on success\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api Azure Alerts Management Service Resource Provider\n@base https://management.azure.com\n@version 2019-06-01\n@auth OAuth2\n@common_fields {subscriptionId: any # The ID of the target subscription., api-version: any # Client Api Version.}\n@endpoints 6\n@toc subscriptions(6)\n\n@endpoint GET /subscriptions/{subscriptionId}/providers/microsoft.alertsManagement/smartDetectorAlertRules\n@desc List all the existing Smart Detector alert rules within the subscription.\n@optional {expandDetector: any # Indicates if Smart Detector should be expanded.}\n@returns(200) Successful request to list Smart Detector alert rules.\n\n@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules\n@desc List all the existing Smart Detector alert rules within the subscription and resource group.\n@required {resourceGroupName: any # The name of the resource group.}\n@optional {expandDetector: any # Indicates if Smart Detector should be expanded.}\n@returns(200) Successful request to list Smart Detector alert rules.\n\n@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName}\n@desc Get a specific Smart Detector alert rule.\n@required {resourceGroupName: any # The name of the resource group., alertRuleName: any # The name of the alert rule.}\n@optional {expandDetector: any # Indicates if Smart Detector should be expanded.}\n@returns(200) Successful request to get Smart Detector alert rule.\n\n@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName}\n@desc Create or update a Smart Detector alert rule.\n@required {resourceGroupName: any # The name of the resource group., alertRuleName: any # The name of the alert rule., parameters: any # Parameters supplied to the operation.}\n@returns(200) Successful request to update a Smart Detector alert rule.\n@returns(201) Successful request to create a Smart Detector alert rule.\n\n@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName}\n@desc Patch a specific Smart Detector alert rule.\n@required {resourceGroupName: any # The name of the resource group., alertRuleName: any # The name of the alert rule., parameters: any # Parameters supplied to the operation.}\n@returns(200) Successful request to patch Smart Detector alert rule.\n\n@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName}\n@desc Delete an existing Smart Detector alert rule.\n@required {resourceGroupName: any # The name of the resource group., alertRuleName: any # The name of the alert rule.}\n@returns(200) Successful request to delete a Smart Detector alert rule.\n@returns(204) The Smart Detector alert rule does not exist. It may have already been deleted.\n\n@end\n"}}