{"files":{"SKILL.md":"---\nname: portal\ndescription: \"portal API skill. Use when working with portal for providers, subscriptions. Covers 7 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# portal\nAPI version: 2019-01-01-preview\n\n## Auth\nOAuth2\n\n## Base URL\nhttps://management.azure.com\n\n## Setup\n1. Configure auth: OAuth2\n2. GET /providers/Microsoft.Portal/operations -- the microsoft portal operations api.\n3. Explore available endpoints below\n\n## Endpoints\n7 endpoints across 2 groups. See references/api-spec.lap for full details.\n\n### Providers\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /providers/Microsoft.Portal/operations | The Microsoft Portal operations API. |\n\n### Subscriptions\n| Method | Path | Description |\n|--------|------|-------------|\n| PUT | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName} | Creates or updates a Dashboard. |\n| DELETE | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName} | Deletes the Dashboard. |\n| GET | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName} | Gets the Dashboard. |\n| PATCH | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName} | Updates an existing Dashboard. |\n| GET | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards | Gets all the Dashboards within a resource group. |\n| GET | /subscriptions/{subscriptionId}/providers/Microsoft.Portal/dashboards | Gets all the dashboards within a subscription. |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"List all operations?\" -> GET /providers/Microsoft.Portal/operations\n- \"Update a dashboard?\" -> PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}\n- \"Delete a dashboard?\" -> DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}\n- \"Get dashboard details?\" -> GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}\n- \"Partially update a dashboard?\" -> PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}\n- \"List all dashboards?\" -> GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards\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- Error responses include status codes and descriptions in the spec\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 portal\n@base https://management.azure.com\n@version 2019-01-01-preview\n@auth OAuth2\n@common_fields {api-version: any # The API version to be used with the HTTP request.}\n@endpoints 7\n@toc providers(1), subscriptions(6)\n\n@group providers\n@endpoint GET /providers/Microsoft.Portal/operations\n@desc The Microsoft Portal operations API.\n@returns(200) Describe the result of a successful operation.\n\n@endgroup\n\n@group subscriptions\n@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}\n@desc Creates or updates a Dashboard.\n@required {subscriptionId: any # The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000), resourceGroupName: any # The name of the resource group., dashboardName: any # The name of the dashboard., dashboard: map # The parameters required to create or update a dashboard.}\n@returns(200) Resource already exists.\n@returns(201) Created response definition. Resource has been created\n\n@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}\n@desc Deletes the Dashboard.\n@required {subscriptionId: any # The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000), resourceGroupName: any # The name of the resource group., dashboardName: any # The name of the dashboard.}\n@returns(200) OK response definition.\n@returns(204) OK resource was not found.\n\n@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}\n@desc Gets the Dashboard.\n@required {subscriptionId: any # The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000), resourceGroupName: any # The name of the resource group., dashboardName: any # The name of the dashboard.}\n@returns(200) OK response definition.\n@errors {404: Not found. Dashboard with provided id doesn't exist.}\n\n@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}\n@desc Updates an existing Dashboard.\n@required {subscriptionId: any # The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000), resourceGroupName: any # The name of the resource group., dashboardName: any # The name of the dashboard., dashboard: map # The updatable fields of a Dashboard.}\n@returns(200) OK response definition.\n@errors {404: Not found. Dashboard with provided id doesn't exist.}\n\n@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards\n@desc Gets all the Dashboards within a resource group.\n@required {subscriptionId: any # The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000), resourceGroupName: any # The name of the resource group.}\n@returns(200) OK - Returns an array of Dashboards.\n\n@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.Portal/dashboards\n@desc Gets all the dashboards within a subscription.\n@required {subscriptionId: any # The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)}\n@returns(200) OK - Returns an array of dashboards.\n\n@endgroup\n\n@end\n"}}