{"files":{"SKILL.md":"---\nname: applicationinsightsmanagementclient\ndescription: \"ApplicationInsightsManagementClient API skill. Use when working with ApplicationInsightsManagementClient for subscriptions. Covers 8 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# ApplicationInsightsManagementClient\nAPI version: 2015-05-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.Insights/components -- gets a list of all application insights components within a subscription.\n3. POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/purge -- create first purge\n\n## Endpoints\n8 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.Insights/components | Gets a list of all Application Insights components within a subscription. |\n| GET | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components | Gets a list of Application Insights components within a resource group. |\n| DELETE | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName} | Deletes an Application Insights component. |\n| GET | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName} | Returns an Application Insights component. |\n| PUT | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName} | Creates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. |\n| PATCH | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName} | Updates an existing component's tags. To update other fields use the CreateOrUpdate method. |\n| POST | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/purge | Purges data in an Application Insights component by a set of user-defined filters. |\n| GET | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/operations/{purgeId} | Get status for an ongoing purge operation. |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"List all components?\" -> GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/components\n- \"Delete a component?\" -> DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}\n- \"Get component details?\" -> GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}\n- \"Update a component?\" -> PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}\n- \"Partially update a component?\" -> PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}\n- \"Create a purge?\" -> POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/purge\n- \"Get operation details?\" -> GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/operations/{purgeId}\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 ApplicationInsightsManagementClient\n@base https://management.azure.com\n@version 2015-05-01\n@auth OAuth2\n@endpoints 8\n@toc subscriptions(8)\n\n@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/components\n@desc Gets a list of all Application Insights components within a subscription.\n@returns(200) A list containing 0 or more Application Insights component definitions.\n\n@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components\n@desc Gets a list of Application Insights components within a resource group.\n@returns(200) A list containing 0 or more Application Insights component definitions.\n\n@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}\n@desc Deletes an Application Insights component.\n@required {resourceName: any # The name of the Application Insights component resource.}\n@returns(200) Successful request when deleting an Application Insights component.\n@returns(204) The specified component does not exist.\n\n@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}\n@desc Returns an Application Insights component.\n@required {resourceName: any # The name of the Application Insights component resource.}\n@returns(200) An Application Insights Component definition.\n\n@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}\n@desc Creates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.\n@required {resourceName: any # The name of the Application Insights component resource., InsightProperties: any # Properties that need to be specified to create an Application Insights component.}\n@returns(200) Successful request when creating or updating an Application Insights component. The updated component is returned.\n\n@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}\n@desc Updates an existing component's tags. To update other fields use the CreateOrUpdate method.\n@required {resourceName: any # The name of the Application Insights component resource., ComponentTags: any # Updated tag information to set into the component instance.}\n@returns(200) Updating the Application Insights component's tags was successful. Component tags are updated and returned with the rest of the Component's object properties.\n\n@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/purge\n@desc Purges data in an Application Insights component by a set of user-defined filters.\n@required {resourceName: any # The name of the Application Insights component resource., body: any # Describes the body of a request to purge data in a single table of an Application Insights component}\n@returns(202) Accepted request for purging an Application Insights component.\n\n@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/operations/{purgeId}\n@desc Get status for an ongoing purge operation.\n@required {resourceName: any # The name of the Application Insights component resource., purgeId: any # In a purge status request, this is the Id of the operation the status of which is returned.}\n@returns(200) Returns status of purge operation in body of response. e.g.:  running, completed.\n\n@end\n"}}