{"files":{"SKILL.md":"---\nname: azure-resource-graph-query\ndescription: \"Azure Resource Graph Query API skill. Use when working with Azure Resource Graph Query for subscriptions. Covers 5 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# Azure Resource Graph Query\nAPI version: 2018-09-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.ResourceGraph/queries -- get all graph queries defined within a specified subscription and resource group.\n3. Explore available endpoints below\n\n## Endpoints\n5 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.ResourceGraph/queries | Get all graph queries defined within a specified subscription and resource group. |\n| GET | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName} | Get a single graph query by its resourceName. |\n| DELETE | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName} | Delete a graph query. |\n| PUT | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName} | Create a new graph query. |\n| PATCH | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName} | Updates a graph query that has already been added. |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"List all queries?\" -> GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries\n- \"Get query details?\" -> GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}\n- \"Delete a query?\" -> DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}\n- \"Update a query?\" -> PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}\n- \"Partially update a query?\" -> PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}\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 Resource Graph Query\n@base https://management.azure.com\n@version 2018-09-01-preview\n@auth OAuth2\n@endpoints 5\n@toc subscriptions(5)\n\n@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries\n@desc Get all graph queries defined within a specified subscription and resource group.\n@required {subscriptionId: any # The Azure subscription Id., resourceGroupName: any # The name of the resource group., api-version: any # Client Api Version.}\n@returns(200) A list containing 0 or more graph queries.\n\n@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}\n@desc Get a single graph query by its resourceName.\n@required {subscriptionId: any # The Azure subscription Id., resourceGroupName: any # The name of the resource group., resourceName: any # The name of the Graph Query resource., api-version: any # Client Api Version.}\n@returns(200) A graph query definition.\n\n@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}\n@desc Delete a graph query.\n@required {subscriptionId: any # The Azure subscription Id., resourceGroupName: any # The name of the resource group., resourceName: any # The name of the Graph Query resource., api-version: any # Client Api Version.}\n@returns(200) The graph query has been successfully deleted.\n@returns(204) The resource doesn't exist.\n\n@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}\n@desc Create a new graph query.\n@required {subscriptionId: any # The Azure subscription Id., resourceGroupName: any # The name of the resource group., resourceName: any # The name of the Graph Query resource., api-version: any # Client Api Version., properties: any # Properties that need to be specified to create a new graph query.}\n@returns(200) The newly created graph query.\n\n@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}\n@desc Updates a graph query that has already been added.\n@required {subscriptionId: any # The Azure subscription Id., resourceGroupName: any # The name of the resource group., resourceName: any # The name of the Graph Query resource., api-version: any # Client Api Version., body: any # Properties that need to be specified to create a new graph query.}\n@returns(200) The graph query definition updated.\n\n@end\n"}}