{"files":{"SKILL.md":"---\nname: azure-log-analytics\ndescription: \"Azure Log Analytics API skill. Use when working with Azure Log Analytics for subscriptions. Covers 6 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# Azure Log Analytics\nAPI version: 2019-08-01-preview\n\n## Auth\nOAuth2\n\n## Base URL\nhttps://management.azure.com\n\n## Setup\n1. Configure auth: OAuth2\n2. GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters -- gets log analytics clusters in a resource group.\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}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters | Gets Log Analytics clusters in a resource group. |\n| GET | /subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/clusters | Gets the Log Analytics clusters in a subscription. |\n| PUT | /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName} | Create or update a Log Analytics cluster. |\n| DELETE | /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName} | Deletes a cluster instance. |\n| GET | /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName} | Gets a Log Analytics cluster instance. |\n| PATCH | /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName} | Updates a Log Analytics cluster. |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"List all clusters?\" -> GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters\n- \"Update a cluster?\" -> PUT /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}\n- \"Delete a cluster?\" -> DELETE /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}\n- \"Get cluster details?\" -> GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}\n- \"Partially update a cluster?\" -> PATCH /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}\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 Log Analytics\n@base https://management.azure.com\n@version 2019-08-01-preview\n@auth OAuth2\n@common_fields {api-version: any # The client API version., subscriptionId: any # Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.}\n@endpoints 6\n@toc subscriptions(6)\n\n@endpoint GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters\n@desc Gets Log Analytics clusters in a resource group.\n@required {resourceGroupName: any # The name of the resource group to get. The name is case insensitive.}\n@returns(200) OK response definition.\n\n@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/clusters\n@desc Gets the Log Analytics clusters in a subscription.\n@returns(200) OK response definition.\n\n@endpoint PUT /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}\n@desc Create or update a Log Analytics cluster.\n@required {resourceGroupName: any # The resource group name of the Log Analytics cluster., clusterName: any # The name of the Log Analytics cluster., parameters: any # The parameters required to create or update a Log Analytics cluster.}\n@returns(202) Accepted response definition.\n\n@endpoint DELETE /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}\n@desc Deletes a cluster instance.\n@required {resourceGroupName: any # The resource group name of the Log Analytics cluster., clusterName: any # Name of the Log Analytics Cluster.}\n@returns(200) OK response definition.\n@returns(204) NoContent response definition.\n\n@endpoint GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}\n@desc Gets a Log Analytics cluster instance.\n@required {resourceGroupName: any # The resource group name of the Log Analytics cluster., clusterName: any # Name of the Log Analytics Cluster.}\n@returns(200) OK response definition.\n\n@endpoint PATCH /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}\n@desc Updates a Log Analytics cluster.\n@required {resourceGroupName: any # The resource group name of the cluster., clusterName: any # The name of the cluster., parameters: any # The parameters required to patch a Log Analytics cluster.}\n@returns(200) The existing cluster was successfully updated. Check provisioningStatus to see detailed status.\n\n@end\n"}}